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
Feature
I'd like mypy to raise a "overload won't be matched" or "is redundant" or similar for the following two cases:
@overloaddeffoo(a: str, b: str, c: str): ...
@overloaddeffoo(a: str, *, b: str, c: str): ... # I believe this is redundant
@overloaddeffoo(a: str, *, b: str, c: str): ... # I believe this is redundant@overloaddeffoo(a: str, b: str, c: str): ...
Pitch
Redundant or unreachable overloads are a code smell revealing either an error that slipped by or a misunderstanding of overloads. This is already raised with simpler signatures.
Example from a typeshed PR where a redundant overload was accidentally left in: python/typeshed#10706 (comment)
The text was updated successfully, but these errors were encountered:
Feature
I'd like mypy to raise a "overload won't be matched" or "is redundant" or similar for the following two cases:
Pitch
Redundant or unreachable overloads are a code smell revealing either an error that slipped by or a misunderstanding of overloads. This is already raised with simpler signatures.
Example from a typeshed PR where a redundant overload was accidentally left in: python/typeshed#10706 (comment)
The text was updated successfully, but these errors were encountered: