Incorrect incompatible override report with self type + overload #14002
Labels
bug
mypy got something wrong
topic-inheritance
Inheritance and incompatible overrides
topic-overloads
Given this code:
https://mypy-play.net/?mypy=latest&python=3.10&gist=736b946030f3c52e14c712ce7e95464c
mypy 0.981 reports
main.py:13: error: Signature of "f" incompatible with supertype "A"
.This is incorrect:
B
is anA[int]
, so it doesn't matter that it doesn't implement the second overload.The text was updated successfully, but these errors were encountered: