File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -2267,6 +2267,7 @@ class Medal(Enum):
22672267 # N: See https://typing.readthedocs.io/en/latest/spec/enums.html#defining-members \
22682268 # E: Incompatible types in assignment (expression has type "int", variable has type "str")
22692269 bronze = 3
2270+ [builtins fixtures/enum.pyi]
22702271
22712272[case testEnumMemberWithPlaceholder]
22722273from enum import Enum
@@ -2276,6 +2277,7 @@ class Pet(Enum):
22762277 DOG: str = ... # E: Enum members must be left unannotated \
22772278 # N: See https://typing.readthedocs.io/en/latest/spec/enums.html#defining-members \
22782279 # E: Incompatible types in assignment (expression has type "ellipsis", variable has type "str")
2280+ [builtins fixtures/enum.pyi]
22792281
22802282[case testEnumValueWithPlaceholderNodeType]
22812283# https://github.com/python/mypy/issues/11971
Original file line number Diff line number Diff line change @@ -1579,6 +1579,7 @@ match m:
15791579 reveal_type(m) # N: Revealed type is "Literal[__main__.Medal.bronze]"
15801580 case _ as unreachable:
15811581 assert_never(unreachable)
1582+ [builtins fixtures/enum.pyi]
15821583
15831584[case testMatchLiteralPatternEnumCustomEquals-skip]
15841585from enum import Enum
You can’t perform that action at this time.
0 commit comments