You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test-data/unit/check-functions.test
+4-1
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,10 @@ class A(object):
46
46
def f(self, a: int, b: str) -> None: pass
47
47
48
48
class B(A):
49
-
def f(self, b: str, a: int) -> None: pass # E: Argument 1 of "f" is incompatible with supertype "A"; supertype defines the argument type as "int" # E: Argument 2 of "f" is incompatible with supertype "A"; supertype defines the argument type as "str"
49
+
def f(self, b: str, a: int) -> None: pass # E: Argument 1 of "f" is incompatible with supertype "A"; supertype defines the argument type as "int" \
50
+
# N: This violates the Liskov substitution principle \
51
+
# N: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides \
52
+
# E: Argument 2 of "f" is incompatible with supertype "A"; supertype defines the argument type as "str"
0 commit comments