-
Notifications
You must be signed in to change notification settings - Fork 216
Open
0 / 10 of 1 issue completedLabels
enumstyping semanticstyping-module features, spec compliance, etctyping-module features, spec compliance, etc
Milestone
Description
We have basic support for enums, but there is a long tail of things that could be improved:
- Infer type for member names and member values.
- Special-case handling of
IntEnum,StrEnum, or other custom classes that derive from bothEnumand some other class (infer appropriate types for member values) -
auto()values - Handling of
enum.Flag(enum expansion may not be performed for subclasses ofenum.Flag) - Custom
__new__or__init__methods in enums. - Support for
_generate_next_value_ - Special-case handling for call to enum class to retrieve member by value (e.g.
Color("red")) - Function syntax to create Enums
Reactions are currently unavailable
Sub-issues
Metadata
Metadata
Assignees
Labels
enumstyping semanticstyping-module features, spec compliance, etctyping-module features, spec compliance, etc