Closed sunavlis closed 1 year ago
The pybind11-stubgen
log contains a link to https://pybind11.readthedocs.io/en/stable/advanced/misc.html?highlight=docstring#avoiding-c-types-in-docstrings which should help you solve the problem.
Thanks for pointing me to the right documentation. It solved the problem.
I try to generate a stub file from a C++ class which is wrapped with pybind11. My class is in a namespace and returns an object from a enum class.
Here is an example of the class:
Which is wrapped in a PYBIND11_MODULE with the following code:
It compiles as expected and works in my Python script. But the stubs generation is not working and returns the following error:
ass soon as I put the test_e enum definition outside of the Test namespace, the stub generation works as expected.
Do I miss something in the definition or implementation? Or is it a bug in the stubgen implementation?