-
Notifications
You must be signed in to change notification settings - Fork 779
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
enum
s generated by Pyo3 don't actually subclass Python's Enum
#2887
Comments
enum
s generated by Pyo3 don't actually subclass Python's Enum
.enum
s generated by Pyo3 don't actually subclass Python's Enum
More likely we could add methods to our exposed enums to match what the expected interface would be. This would be a case of someone enumerating what's missing and we decide whether to support it or not. |
That is what I assumed was the answer. For future reference, this is the total list of attributes missing from enums as they stand, to the best of my understanding. From
As a side note,
All There are additional attributes expected on some standard https://docs.python.org/3/library/enum.html |
enum
s generated by Pyo3 don't actually subclass Python'sEnum
. Due to this, some attributes/methods are missing from Pyo3 enums that you would expect in Python. Additionally,EnumType
is not the metaclass of Pyo3 enums leading to the same problems.I am not entirely sure how this might be fixed, simply because I don't know the restrictions of the Python C API.
The text was updated successfully, but these errors were encountered: