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
enumDirDiff {
DIRDIFF_SAME=0, ///< Both directions faces to the same direction
};
py::enum_<DirDiff>(m, "DirDiff" ,py::is_flag(),py::is_arithmetic())
.value("SAME", DirDiff::DIRDIFF_SAME)
;
The text was updated successfully, but these errors were encountered:
This is actually a tricky topic. What about types -- do we need to declare them before they can be used, as well? If so, that quickly becomes a very complicated ordering problem that would require a major redesign of the stub generator.
PyRight doesn't care either way, both for aliases and types themselves. MyPy is much stricter. (MyPy is also broken in many ways, so I don't trust it very much these days)
I agree that this is the "low-hanging fruit" part, but it's the one part that you can't control by simply sorting the stubs, using whatever ad-hoc way happens to work for you. ;-)
Problem description
This is unlikely to work:
Reproducible example code
The text was updated successfully, but these errors were encountered: