We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f14b163 commit f4cb3f9Copy full SHA for f4cb3f9
test-data/unit/check-union-or-syntax.test
@@ -106,7 +106,8 @@ b: X # E: Variable "__main__.X" is not valid as a type \
106
# flags: --python-version 3.9
107
from __future__ import annotations
108
from typing import List
109
-T = int | str # E: Invalid type alias: expression is not a valid type
+T = int | str # E: Invalid type alias: expression is not a valid type \
110
+ # E: Unsupported left operand type for | ("type[int]")
111
class C(List[int | str]): # E: Type expected within [...] \
112
# E: Invalid base class "List"
113
pass
0 commit comments