Enums with only descriptor members should not be final #12494
Labels
bug
mypy got something wrong
topic-descriptors
Properties, class vs. instance attributes
topic-enum
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
Bug Report
If all members of an Enum class are descriptors, the class should still be subclassable.
Quote from the Python documentation:
This would also match the behaviour of Pyright (1.1.234)
To Reproduce
mypy==0.941
mypy
on this code:Expected Behavior
No errors - this runs just fine
Actual Behavior
Your Environment
The text was updated successfully, but these errors were encountered: