enums generated by Pyo3 don't actually subclass Python's Enum. 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.
enums 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,EnumTypeis 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.