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
Actually it looks like #16053 introduced a subtle bug in subtyping, this is why it fixed this issue. I will at fixing myself soon, I am not going to re-open this, as there is a conveniently open duplicate #15299, that also looks fixed because of the subtyping bug.
Bug Report
Mypy seems to type narrow correctly, but still throws an error when trying to add to a set.
To Reproduce
Gist URL: https://gist.github.com/c10befca044d78713b96a9706ac355b2
Playground URL: https://mypy-play.net/?mypy=master&python=3.10&gist=c10befca044d78713b96a9706ac355b2
Expected Behavior
No error.
Actual Behavior
Your Environment
mypy 0.990+dev.780534b13722b7b0422178c049a1cbbf4ea4255b (compiled: no)
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: