You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improved errors when inheriting and forgetting to call __init__
If the base class doesn't have a constructor, tell the user that it cannot be
inherited from.
Caveats:
* Doesn't work on PyPy
* Since default_object_init is inline, if the default instance base was no longer
a PyHeapTypeObject it could crash.
* If pybind11_object_init changed in the future, and multiple pybind11 modules are
present, get_internals might return an old version of the function
0 commit comments