Skip to content

enums generated by Pyo3 don't actually subclass Python's Enum #2887

@yodaldevoid

Description

@yodaldevoid

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions