Skip to content

Commit c5c6ef3

Browse files
committed
Argh 3.9
1 parent 1abbc3f commit c5c6ef3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mypyc/test-data/run-classes.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2712,7 +2712,7 @@ Player.MIN = <Player.MIN: 1>
27122712

27132713
[case testEnumMethodCalls]
27142714
from enum import Enum
2715-
from typing import overload, Self
2715+
from typing import overload, Optional, Self, Union
27162716

27172717
class C:
27182718
def foo(self, x: Test) -> bool:
@@ -2739,8 +2739,8 @@ class Test(Enum):
27392739
@overload
27402740
def enigma(self, val: int) -> bool: ...
27412741
@overload
2742-
def enigma(self, val: str | None = None) -> int: ...
2743-
def enigma(self, val: int | str | None = None) -> int | bool:
2742+
def enigma(self, val: Optional[str] = None) -> int: ...
2743+
def enigma(self, val: Union[int, str, None] = None) -> Union[int, bool]:
27442744
if isinstance(val, int):
27452745
return self.is_one()
27462746
return 22

0 commit comments

Comments
 (0)