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
I have an enum and a class defined in py nanobind module. The class references a value from the enum in one of its method's default arguments.
When I run nanobind.stubgen, the enum definition is output after the class, causing the enum type's name in the python default argument to be unknown (to the IDE). It seems that all the entries are sorted alphabetically, rather than retaining e.g. the sort order they are given in the C++ code.
Is this expected?
Reproducible example code
The text was updated successfully, but these errors were encountered:
Problem description
I have an enum and a class defined in py nanobind module. The class references a value from the enum in one of its method's default arguments.
When I run
nanobind.stubgen
, the enum definition is output after the class, causing the enum type's name in the python default argument to be unknown (to the IDE). It seems that all the entries are sorted alphabetically, rather than retaining e.g. the sort order they are given in the C++ code.Is this expected?
Reproducible example code
The text was updated successfully, but these errors were encountered: