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
{{ message }}
Repository navigation
Narrowing depends on the order of isinstance checks when using a genric type #10178
Mypy is incoherent in the following code even though the only difference is the order of the isinstance checks. I know that Optional is the idiomatic mypy way to represent possibly missing values, but this is the smallest example I found that shows the problem.
Activity
erictraut commentedon Aug 12, 2023
This bug appears to have been fixed. It no longer repros with the latest version of mypy.
hauntsaninja commentedon Aug 12, 2023
I think fixed by #11273