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
Pyright intentionally doesn't do any override validation when overloads are involved. There's really no good way (as far as I know) to determine whether one set of overloads is compatible with another. So rather than risk false positive errors, pyright doesn't attempt to detect override compatibilities in this case.
Interesting, I hadn't realized that. I don't know what mypy does internally, but in pyanalyze for checking the compatibility of two overloaded signatures L and R, I check that R is compatible with all of the component signatures in L.
On current Pylance/Pyright, I get no errors on this file:
But both
Child
andChild2
overridepop
incompatibly. (Found this in jab/bidict#242 (comment) )The text was updated successfully, but these errors were encountered: