Skip to content

Commit 168e67a

Browse files
committed
fix test
accidentally got it into a form that didn't reproduce the crash on master it's important the int is declared after the literals
1 parent 83df83d commit 168e67a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test-data/unit/check-literal.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3049,11 +3049,11 @@ import types
30493049
from typing import Literal
30503050
from typing_extensions import TypeAlias
30513051

3052+
_PositiveInteger: TypeAlias = Literal[1]
3053+
_LiteralInteger = _PositiveInteger | Literal[0]
3054+
30523055
class int: ...
30533056
class ellipsis: ...
30543057
class str: ...
30553058
class list: ...
30563059
class dict: ...
3057-
3058-
_PositiveInteger: TypeAlias = Literal[1]
3059-
_LiteralInteger = _PositiveInteger | Literal[0]

0 commit comments

Comments
 (0)