@@ -1051,9 +1051,9 @@ class A:
1051
1051
[file n.py.3]
1052
1052
[out]
1053
1053
==
1054
- main:3: error: Return type "str" of "f" incompatible with return type "int" in supertype "A"
1054
+ main:3: error: Return type "str" of "f" incompatible with return type "int" in supertype "m. A"
1055
1055
==
1056
- main:3: error: Return type "str" of "f" incompatible with return type "int" in supertype "A"
1056
+ main:3: error: Return type "str" of "f" incompatible with return type "int" in supertype "m. A"
1057
1057
1058
1058
[case testModifyBaseClassMethodCausingInvalidOverride]
1059
1059
import m
@@ -1067,7 +1067,7 @@ class A:
1067
1067
def f(self) -> int: pass
1068
1068
[out]
1069
1069
==
1070
- main:3: error: Return type "str" of "f" incompatible with return type "int" in supertype "A"
1070
+ main:3: error: Return type "str" of "f" incompatible with return type "int" in supertype "m. A"
1071
1071
1072
1072
[case testAddBaseClassAttributeCausingErrorInSubclass]
1073
1073
import m
@@ -1974,11 +1974,11 @@ class B:
1974
1974
class B:
1975
1975
def foo(self) -> int: return 12
1976
1976
[out]
1977
- a.py:9: error: Return type "int" of "foo" incompatible with return type "str" in supertype "B"
1977
+ a.py:9: error: Return type "int" of "foo" incompatible with return type "str" in supertype "b. B"
1978
1978
==
1979
- a.py:9: error: Return type "int" of "foo" incompatible with return type "str" in supertype "B"
1979
+ a.py:9: error: Return type "int" of "foo" incompatible with return type "str" in supertype "b. B"
1980
1980
==
1981
- a.py:9: error: Return type "int" of "foo" incompatible with return type "str" in supertype "B"
1981
+ a.py:9: error: Return type "int" of "foo" incompatible with return type "str" in supertype "b. B"
1982
1982
==
1983
1983
1984
1984
[case testPreviousErrorInMethodSemanal1]
@@ -7337,7 +7337,7 @@ class Parent:
7337
7337
def f(self, arg: Any) -> Any: ...
7338
7338
[out]
7339
7339
==
7340
- main:4: error: Signature of "f" incompatible with supertype "Parent"
7340
+ main:4: error: Signature of "f" incompatible with supertype "b. Parent"
7341
7341
main:4: note: Superclass:
7342
7342
main:4: note: @overload
7343
7343
main:4: note: def f(self, arg: int) -> int
@@ -7380,7 +7380,7 @@ class Parent:
7380
7380
def f(self, arg: Any) -> Any: ...
7381
7381
[out]
7382
7382
==
7383
- main:4: error: Signature of "f" incompatible with supertype "Parent"
7383
+ main:4: error: Signature of "f" incompatible with supertype "b. Parent"
7384
7384
main:4: note: Superclass:
7385
7385
main:4: note: @overload
7386
7386
main:4: note: def f(self, arg: int) -> int
@@ -7765,7 +7765,7 @@ def deco(f: F) -> F:
7765
7765
[out]
7766
7766
main:7: error: Unsupported operand types for + ("str" and "int")
7767
7767
==
7768
- main:5: error: Return type "str" of "m" incompatible with return type "int" in supertype "B"
7768
+ main:5: error: Return type "str" of "m" incompatible with return type "int" in supertype "b. B"
7769
7769
7770
7770
[case testLiskovFineVariableClean-only_when_nocache]
7771
7771
import b
@@ -7870,7 +7870,7 @@ def deco(f: F) -> F:
7870
7870
pass
7871
7871
[out]
7872
7872
==
7873
- main:5: error: Return type "str" of "m" incompatible with return type "int" in supertype "B"
7873
+ main:5: error: Return type "str" of "m" incompatible with return type "int" in supertype "b. B"
7874
7874
7875
7875
[case testAddAbstractMethod]
7876
7876
from b import D
@@ -8518,7 +8518,7 @@ class D:
8518
8518
==
8519
8519
==
8520
8520
a.py:3: error: Cannot override final attribute "meth" (previously declared in base class "C")
8521
- a.py:3: error: Signature of "meth" incompatible with supertype "C"
8521
+ a.py:3: error: Signature of "meth" incompatible with supertype "c. C"
8522
8522
a.py:3: note: Superclass:
8523
8523
a.py:3: note: @overload
8524
8524
a.py:3: note: def meth(self, x: int) -> int
@@ -8565,7 +8565,7 @@ class D:
8565
8565
==
8566
8566
==
8567
8567
a.py:3: error: Cannot override final attribute "meth" (previously declared in base class "C")
8568
- a.py:3: error: Signature of "meth" incompatible with supertype "C"
8568
+ a.py:3: error: Signature of "meth" incompatible with supertype "c. C"
8569
8569
a.py:3: note: Superclass:
8570
8570
a.py:3: note: @overload
8571
8571
a.py:3: note: def meth(x: int) -> int
0 commit comments