@@ -1051,9 +1051,9 @@ class A:
10511051[file n.py.3]
10521052[out]
10531053==
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"
10551055==
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"
10571057
10581058[case testModifyBaseClassMethodCausingInvalidOverride]
10591059import m
@@ -1067,7 +1067,7 @@ class A:
10671067 def f(self) -> int: pass
10681068[out]
10691069==
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"
10711071
10721072[case testAddBaseClassAttributeCausingErrorInSubclass]
10731073import m
@@ -1974,11 +1974,11 @@ class B:
19741974class B:
19751975 def foo(self) -> int: return 12
19761976[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"
19781978==
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"
19801980==
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"
19821982==
19831983
19841984[case testPreviousErrorInMethodSemanal1]
@@ -7337,7 +7337,7 @@ class Parent:
73377337 def f(self, arg: Any) -> Any: ...
73387338[out]
73397339==
7340- main:4: error: Signature of "f" incompatible with supertype "Parent"
7340+ main:4: error: Signature of "f" incompatible with supertype "b. Parent"
73417341main:4: note: Superclass:
73427342main:4: note: @overload
73437343main:4: note: def f(self, arg: int) -> int
@@ -7380,7 +7380,7 @@ class Parent:
73807380 def f(self, arg: Any) -> Any: ...
73817381[out]
73827382==
7383- main:4: error: Signature of "f" incompatible with supertype "Parent"
7383+ main:4: error: Signature of "f" incompatible with supertype "b. Parent"
73847384main:4: note: Superclass:
73857385main:4: note: @overload
73867386main:4: note: def f(self, arg: int) -> int
@@ -7765,7 +7765,7 @@ def deco(f: F) -> F:
77657765[out]
77667766main:7: error: Unsupported operand types for + ("str" and "int")
77677767==
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"
77697769
77707770[case testLiskovFineVariableClean-only_when_nocache]
77717771import b
@@ -7870,7 +7870,7 @@ def deco(f: F) -> F:
78707870 pass
78717871[out]
78727872==
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"
78747874
78757875[case testAddAbstractMethod]
78767876from b import D
@@ -8518,7 +8518,7 @@ class D:
85188518==
85198519==
85208520a.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"
85228522a.py:3: note: Superclass:
85238523a.py:3: note: @overload
85248524a.py:3: note: def meth(self, x: int) -> int
@@ -8565,7 +8565,7 @@ class D:
85658565==
85668566==
85678567a.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"
85698569a.py:3: note: Superclass:
85708570a.py:3: note: @overload
85718571a.py:3: note: def meth(x: int) -> int
0 commit comments