| 144 | |
| 145 | // Guard against accidents & oversights, in particular when porting to future Python versions. |
| 146 | inline PyObject *tp_new_impl(PyTypeObject *, PyObject *, PyObject *) { |
| 147 | pybind11_fail("UNEXPECTED CALL OF function_record_PyTypeObject_methods::tp_new_impl"); |
| 148 | // return nullptr; // Unreachable. |
| 149 | } |
| 150 | |
| 151 | inline PyObject *tp_alloc_impl(PyTypeObject *, Py_ssize_t) { |
| 152 | pybind11_fail("UNEXPECTED CALL OF function_record_PyTypeObject_methods::tp_alloc_impl"); |
nothing calls this directly
no outgoing calls
no test coverage detected