File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 17
17
from mypy .subtypes import is_proper_subtype
18
18
from mypy .types import (
19
19
AnyType ,
20
- CallableType ,
21
20
FunctionLike ,
22
21
Instance ,
23
22
NoneTyp ,
Original file line number Diff line number Diff line change @@ -1801,9 +1801,9 @@ C = str | int
1801
1801
D: TypeAlias = str | int
1802
1802
[out]
1803
1803
_testTypeAliasNotSupportedWithNewStyleUnion.py:3: error: Invalid type alias: expression is not a valid type
1804
- _testTypeAliasNotSupportedWithNewStyleUnion.py:3: error: Value of type "Type[type]" is not indexable
1804
+ _testTypeAliasNotSupportedWithNewStyleUnion.py:3: error: The type "Type[type]" is not generic and not indexable
1805
1805
_testTypeAliasNotSupportedWithNewStyleUnion.py:4: error: Invalid type alias: expression is not a valid type
1806
- _testTypeAliasNotSupportedWithNewStyleUnion.py:4: error: Value of type "Type[type]" is not indexable
1806
+ _testTypeAliasNotSupportedWithNewStyleUnion.py:4: error: The type "Type[type]" is not generic and not indexable
1807
1807
_testTypeAliasNotSupportedWithNewStyleUnion.py:5: error: Invalid type alias: expression is not a valid type
1808
1808
_testTypeAliasNotSupportedWithNewStyleUnion.py:5: error: Unsupported left operand type for | ("Type[str]")
1809
1809
_testTypeAliasNotSupportedWithNewStyleUnion.py:6: error: Invalid type alias: expression is not a valid type
You can’t perform that action at this time.
0 commit comments