Closed
Description
When a derived class MroDerived
needs to expose a static attribute (which necessitates using py::metaclass
), but also inherits from multiple bases Python raises the following error:
ImportError: MroDerived: PyType_Ready failed (TypeError: mro() returned base with unsuitable layout ('pybind11_tests.MroBaseB'))!
For a complete example see https://github.com/lsst-dm/pybind11/tree/broken_mro
Metadata
Metadata
Assignees
Labels
No labels