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
Agreed that this is unsound, but it's a place where mypy has chosen to be pragmatic. It's not just positional-only args, the same sort of thing also applies to argument name changes:
class A:
def f(self, a: int) -> None: ...
class B(A):
def f(self, b: int) -> None: ...
Bug Report
To Reproduce
B.f
below should be incompatible withA.f
:because the following fails:
Expected Behavior
The signature of B.f should cause an error
Actual Behavior
No errors are reported
Your Environment
mypy 0.961 (compiled: no)
andmypy 0.980+dev.64a40e8487f591d57576396baaafae9e3a618555 (compiled: no)
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: