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
Based on python/mypy#12390 (comment) it looks like this was meant to be addressed in a recent release, but I'm still reproducing this false negative using Pyright 1.1.232.
Example:
importtypingastclassA:
@t.overloaddefpop(self) ->int: ...
@t.overloaddefpop(self, d: int= ...) ->int: ...
defpop(self, d: int= ...) ->int: ...
classB(A):
@t.overloaddefpop(self) ->int: ...
@t.overloaddefpop(self, d: int) ->int: ... # Forgot to make `d` a keyword arg in this overloaddefpop(self, d: int= ...) ->int: ...
❯ pyright test.pyNo configuration file found.No pyproject.toml file found.stubPath /private/tmp/typings is not a valid directory.Assuming Python platform DarwinSearching for source filesFound 1 source file0 errors, 0 warnings, 0 informationsCompleted in 0.59sec
The text was updated successfully, but these errors were encountered:
This is intended behavior. Pyright doesn't attempt to validate overrides when overloads are involved. I don't think this is a tractable problem in general.
Based on python/mypy#12390 (comment) it looks like this was meant to be addressed in a recent release, but I'm still reproducing this false negative using Pyright 1.1.232.
Example:
The text was updated successfully, but these errors were encountered: