Skip to content

Commit 636e22d

Browse files
committed
Adds missing enum fixture to new test cases
1 parent 735a6ba commit 636e22d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

test-data/unit/check-enum.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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]
22722273
from 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

test-data/unit/check-python310.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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]
15841585
from enum import Enum

0 commit comments

Comments
 (0)