GitHub / python/mypy issues and pull requests
Labelled with: topic-enum
#19760 - Stubtest: check `_value_` for ellipsis-valued stub enum members
Pull Request -
State: open - Opened by sterliakov 3 months ago
Labels: topic-stubtest, topic-enum, upnext
#19687 - Sync enum members logic in typeanal and checkmember
Pull Request -
State: open - Opened by sterliakov 4 months ago
- 11 comments
Labels: topic-enum
#19594 - Better support for `SomeEnum.item == some_literal`
Pull Request -
State: open - Opened by sterliakov 4 months ago
- 8 comments
Labels: topic-enum
#19576 - `comparison-overlap` triggers for string enum members when the member name isn't the same as the comparison value
Issue -
State: open - Opened by bzoracler 4 months ago
- 3 comments
Labels: bug, false-positive, topic-literal-types, topic-enum, topic-overlap
#19418 - Type of an Enum nonmember is wrong when accessed through a member
Issue -
State: closed - Opened by cfriedland5 5 months ago
Labels: bug, topic-enum
#19368 - `Enum.value` typed as `Any` when using `functools.cache`
Issue -
State: open - Opened by kmurphy4 5 months ago
- 4 comments
Labels: bug, topic-enum
#19271 - [1.16 regression] no longer recognizes enum singleton as only possible case
Issue -
State: closed - Opened by gwk 6 months ago
- 4 comments
Labels: bug, topic-enum
#19243 - Support subtyping `Literal` with `StrEnum` and `IntEnum` values
Issue -
State: closed - Opened by randolf-scholz 6 months ago
- 3 comments
Labels: feature, topic-literal-types, topic-enum, pending
#19242 - [1.16 regression] Incompatible types error when using `Enum`s of a `NamedTuple`
Issue -
State: open - Opened by pcavalar 6 months ago
- 1 comment
Labels: bug, topic-enum
#19151 - [1.16 regression] determining exhaustive match on an enum with type members
Issue -
State: closed - Opened by delfick 7 months ago
- 8 comments
Labels: bug, topic-enum
#18896 - Inconsistent assignability of enum literal unions vs enum
Issue -
State: open - Opened by sterliakov 8 months ago
Labels: bug, topic-enum
#18875 - Pattern matching is not exhaustive in a weird edge case with an enum member subject
Issue -
State: closed - Opened by injust 8 months ago
- 2 comments
Labels: bug, topic-enum, topic-match-statement
#18866 - Wrong types when pattern matching `int` with `http.HTTPStatus`
Issue -
State: open - Opened by injust 8 months ago
- 3 comments
Labels: bug, topic-enum, topic-match-statement, topic-runtime-semantics
#18808 - unreachable false positive with enums
Issue -
State: closed - Opened by sk- 9 months ago
- 1 comment
Labels: bug, topic-enum
#18722 - Enum exhaustiveness checks fail with `@enum.member`-decorated members
Issue -
State: open - Opened by sterliakov 10 months ago
Labels: bug, topic-enum
#18721 - `mypy` behavior differs when run on a file directly vs a test
Issue -
State: open - Opened by sterliakov 10 months ago
Labels: bug, topic-developer, topic-enum
#18720 - False positive "Method must have at least one argument" with `@enum.member`
Issue -
State: open - Opened by sterliakov 10 months ago
Labels: bug, topic-enum, topic-runtime-semantics
#18565 - `Checker.is_final_enum_value` duplicates `TypoInfo.enum_members` logic
Issue -
State: closed - Opened by sobolevn 11 months ago
- 1 comment
Labels: bug, topic-enum
#18563 - Marking a private `Enum` member as `member()` does not work
Issue -
State: open - Opened by sobolevn 11 months ago
Labels: bug, topic-enum
#18557 - `.enum_members` property does not account to `@member` decorator and call
Issue -
State: open - Opened by sobolevn 11 months ago
Labels: bug, topic-enum
#18549 - `Self` does not work correctly with `Enum`
Issue -
State: closed - Opened by sobolevn 11 months ago
- 4 comments
Labels: bug, topic-enum, topic-self-types
#17860 - Integer incorrectly narrowed to IntEnum
Issue -
State: closed - Opened by JukkaL about 1 year ago
Labels: bug, topic-enum, topic-type-narrowing
#17207 - Fix enum attributes are not members
Pull Request -
State: closed - Opened by terencehonles over 1 year ago
- 22 comments
Labels: topic-enum, upnext
#17207 - Fix enum attributes are not members
Pull Request -
State: closed - Opened by terencehonles over 1 year ago
- 22 comments
Labels: topic-enum, upnext
#17098 - An enum attribute with a private (mangled) name should not be considered an enum member
Issue -
State: closed - Opened by erictraut over 1 year ago
Labels: bug, topic-enum
#16936 - `Enum` created via functional API should be iterable
Issue -
State: open - Opened by abravalheri almost 2 years ago
- 2 comments
Labels: bug, topic-enum
#16876 - false "Attempted to reuse member name in Enum definition"
Issue -
State: open - Opened by belm0 almost 2 years ago
Labels: bug, topic-enum
#16521 - `Enum` and `NamedTuple` should not allow extra keywords
Issue -
State: open - Opened by sobolevn about 2 years ago
- 5 comments
Labels: bug, topic-named-tuple, topic-enum
#16163 - Incremental parsing crash with inline dynamic `enum.Enum` construction
Issue -
State: closed - Opened by PeterJCLaw about 2 years ago
Labels: topic-incremental, crash, topic-enum
#16007 - Unable to stubify Enum so it can be used with Literals, without using type ignore
Issue -
State: open - Opened by Hnasar over 2 years ago
Labels: bug, topic-enum
#15705 - How to describe types for an Enum with attributes
Issue -
State: closed - Opened by dkfellows over 2 years ago
- 2 comments
Labels: bug, topic-enum
#15382 - Inconsistent errors with custom enum base auto items from installed library
Issue -
State: open - Opened by felix-hilden over 2 years ago
- 2 comments
Labels: topic-enum
#15340 - Enum.value is accepted
Issue -
State: open - Opened by erdnaxeli over 2 years ago
- 2 comments
Labels: bug, topic-enum
#15269 - False positive case of "Not all arguments converted during string formatting"
Issue -
State: closed - Opened by jfcherng over 2 years ago
- 2 comments
Labels: bug, topic-enum
#15196 - Type mismatch error with overlapping enums
Issue -
State: open - Opened by LukasKrocek over 2 years ago
Labels: bug, topic-enum
#14977 - Flag Iterable is inferred as Iterable[builtins.object] instead of the actual class name
Issue -
State: closed - Opened by sebdivinity over 2 years ago
- 2 comments
Labels: bug, topic-enum
#14688 - Invalid typing assumption over variable with list(StrEnum) on python 3.11
Issue -
State: closed - Opened by Nnonexistent almost 3 years ago
- 8 comments
Labels: bug, topic-enum
#14109 - Exhaustiveness Checks Fail on Singleton Enums
Issue -
State: closed - Opened by dylanmann about 3 years ago
- 6 comments
Labels: bug, topic-enum, topic-match-statement, topic-reachability
#13841 - Enum instance type ignored in match/case statements
Issue -
State: closed - Opened by ianonavy about 3 years ago
- 2 comments
Labels: feature, topic-enum, topic-match-statement
#12841 - New enum features in Python 3.11
Issue -
State: open - Opened by AlexWaygood over 3 years ago
- 4 comments
Labels: feature, meta, topic-enum
#12107 - Enum elements accessed via 'self' have 'auto' type
Issue -
State: closed - Opened by finite-state-machine almost 4 years ago
- 4 comments
Labels: bug, priority-2-low, topic-enum
#10910 - False positive for "Non-overlapping identity check" when comparing Enum variants
Issue -
State: closed - Opened by kmurphy4 over 4 years ago
- 1 comment
Labels: bug, topic-enum, topic-overlap
#10573 - An Enum with multiple initialisation arguments incorrectly infers the type when calling the Enum.
Issue -
State: open - Opened by MT-0 over 4 years ago
- 4 comments
Labels: bug, topic-enum
#9642 - Unsupported operand types depending on number of enum.Flag values
Issue -
State: closed - Opened by astrojuanlu about 5 years ago
- 5 comments
Labels: bug, topic-enum
#7563 - Using string enums with string formatting may cause false positives
Issue -
State: closed - Opened by ilevkivskyi about 6 years ago
- 1 comment
Labels: bug, priority-2-low, topic-enum
#5483 - Docstring for enum is not inferred as string.
Issue -
State: closed - Opened by qria over 7 years ago
- 2 comments
Labels: bug, priority-1-normal, topic-enum