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
I expect this to type check, since x in both bases are using exactly the same type after substitution of generic arguments. I'm guessing the compatibility check is performed before the substitution, but it should be after.
Actual Behavior
main.py:12: error: Definition of "x" in base class "A" is incompatible with definition in base class "B" [misc]
Your Environment
Mypy version used: 1.5.1
Python version used: 3.11
The text was updated successfully, but these errors were encountered:
To Reproduce
https://mypy-play.net/?mypy=latest&python=3.11&gist=fd4559c9942bc1991500fb402ca989f3
Expected Behavior
I expect this to type check, since
x
in both bases are using exactly the same type after substitution of generic arguments. I'm guessing the compatibility check is performed before the substitution, but it should be after.Actual Behavior
Your Environment
The text was updated successfully, but these errors were encountered: