Skip to content

Commit 4bfbf9d

Browse files
committed
Change test-data for ambiguous fully-qualified-name outputs
1 parent 4e1b656 commit 4bfbf9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test-data/unit/fine-grained.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5137,8 +5137,8 @@ def g(x: T) -> T:
51375137
pass
51385138
[out]
51395139
==
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"
51425142

51435143
[case testGenericFineCallableToGenericClass]
51445144
import a
@@ -7055,7 +7055,7 @@ class T: pass
70557055
a.py:2: error: No overload variant of "f" matches argument type "int"
70567056
a.py:2: note: Possible overload variants:
70577057
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
70597059

70607060
[case testOverloadsToNonOverloaded]
70617061
import a

test-data/unit/pythoneval.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ reveal_type(o6)
904904

905905
[out]
906906
_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"
908908
_testCollectionsAliases.py:9: note: Revealed type is 'collections.ChainMap[builtins.int, builtins.str]'
909909
_testCollectionsAliases.py:12: note: Revealed type is 'collections.deque[builtins.int]'
910910
_testCollectionsAliases.py:15: note: Revealed type is 'collections.Counter[builtins.int*]'

0 commit comments

Comments
 (0)