Skip to content

Commit f4cb3f9

Browse files
committed
Fix test: testUnionOrSyntaxWithinRuntimeContextNotAllowed
1 parent f14b163 commit f4cb3f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test-data/unit/check-union-or-syntax.test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ b: X # E: Variable "__main__.X" is not valid as a type \
106106
# flags: --python-version 3.9
107107
from __future__ import annotations
108108
from typing import List
109-
T = int | str # E: Invalid type alias: expression is not a valid type
109+
T = int | str # E: Invalid type alias: expression is not a valid type \
110+
# E: Unsupported left operand type for | ("type[int]")
110111
class C(List[int | str]): # E: Type expected within [...] \
111112
# E: Invalid base class "List"
112113
pass

0 commit comments

Comments
 (0)