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
Oh great, when I created the issue it wasn't fixed on master yet, but now it seems to be fixed indeed. I don't know if you want to keep this issue open for visibility until this is released or not, so feel free to close it as you see fit.
I don't think we need to keep this open. There is little chance #15837 can be included in 1.5.1 (it is quite a major change), so you will need to wait for 1.6.0
Bug Report
When using Mypy 1.5.0, expressions like
dict | Literal[""]
don't narrow correctly:To Reproduce
Mypy 1.4.1
Mypy 1.5.0
Expected Behavior
Both revealed types should be
Literal[""]
. (As in Mypy 1.4.1.)Actual Behavior
Mypy 1.5.0 does not narrow the revealed type for
x
.y
gets narrowed correctly.Your Environment
See Playground links.
The text was updated successfully, but these errors were encountered: