-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sorting is causing parent-child relationships to be defined out of order #231
Comments
I have this problem as well. The generated classes look like:
|
I have the same issue with mixing classes that I define in the right order - but stubgen outputs them alphabetically, which breaks then exactly as the two examples above: |
@sizmailov Can we disable sorting somehow? I am running tools like |
As a quick hack, I tried to remove the |
I modified the inheritance test in #238 as a demo but am not sure how to fix the issue yet :) |
Ok, if I append pybind11-stubgen/pybind11_stubgen/printer.py Line 228 in cf58aa6
If I just remove the |
I think the issue might be that |
When I run pybind11-stubgen, I see ouput:
The text was updated successfully, but these errors were encountered: