We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Report
This is similar to #13106 but the method is @overloaded in the subtype instead of the supertype.
@overload
To Reproduce playground link
Actual Behavior
main.py:11: error: Signature of "f" incompatible with supertype "Parent" [override] main.py:11: note: Superclass: main.py:11: note: def f(self, i: Union[int, slice]) -> Any main.py:11: note: Subclass: main.py:11: note: @overload main.py:11: note: def f(self, i: int) -> Any main.py:11: note: @overload main.py:11: note: def f(self, i: slice) -> Any Found 1 error in 1 file (checked 1 source file)
Your Environment
mypy.ini
The text was updated successfully, but these errors were encountered:
Duplicate of #12379?
Sorry, something went wrong.
No branches or pull requests
Bug Report
This is similar to #13106 but the method is
@overload
ed in the subtype instead of the supertype.To Reproduce
playground link
Actual Behavior
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: