File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5137,8 +5137,8 @@ def g(x: T) -> T:
5137
5137
pass
5138
5138
[out]
5139
5139
==
5140
- a.py:2: error: Incompatible types in assignment (expression has type "T", variable has type "int")
5141
- a.py:2: error: Argument "x" has incompatible type "int"; expected "T"
5140
+ a.py:2: error: Incompatible types in assignment (expression has type "c. T", variable has type "int")
5141
+ a.py:2: error: Argument "x" has incompatible type "int"; expected "c. T"
5142
5142
5143
5143
[case testGenericFineCallableToGenericClass]
5144
5144
import a
@@ -7055,7 +7055,7 @@ class T: pass
7055
7055
a.py:2: error: No overload variant of "f" matches argument type "int"
7056
7056
a.py:2: note: Possible overload variants:
7057
7057
a.py:2: note: def f(x: C) -> None
7058
- a.py:2: note: def f(x: T) -> T
7058
+ a.py:2: note: def f(x: c. T) -> c. T
7059
7059
7060
7060
[case testOverloadsToNonOverloaded]
7061
7061
import a
Original file line number Diff line number Diff line change @@ -904,7 +904,7 @@ reveal_type(o6)
904
904
905
905
[out]
906
906
_testCollectionsAliases.py:5: note: Revealed type is 'collections.Counter[builtins.int]'
907
- _testCollectionsAliases.py:6: error: Invalid index type "str" for "Counter[int]"; expected type "int"
907
+ _testCollectionsAliases.py:6: error: Invalid index type "str" for "collections. Counter[int]"; expected type "int"
908
908
_testCollectionsAliases.py:9: note: Revealed type is 'collections.ChainMap[builtins.int, builtins.str]'
909
909
_testCollectionsAliases.py:12: note: Revealed type is 'collections.deque[builtins.int]'
910
910
_testCollectionsAliases.py:15: note: Revealed type is 'collections.Counter[builtins.int*]'
You can’t perform that action at this time.
0 commit comments