openPMD / openPMD-api

:floppy_disk: C++ & Python API for Scientific I/O
https://openpmd-api.readthedocs.io
GNU Lesser General Public License v3.0
134 stars 51 forks source link

Python: Fix Init Order #1547

Closed ax3l closed 8 months ago

ax3l commented 8 months ago

The init order cannot reference types as arguments, return types or base classes that are not yet known to Python. This fixes this.

After install, seen with

pybind11-stubgen --exit-code -o src/binding/python/ openpmd_api

as preparation for Python stub file creation #1385 .

Only errors for stub generation that are left:

Update: fixed now as well as of pybind11-stubgen v2.3.6 :tada: