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
Thanks, looks like most of the relevant discussion is on #7508. Sounds like most people are surprised that isinstance works at all with old Union / think that type checkers should special case this even more than they currently do
Currently it allows for
types.UnionType
but nottyping.Union
I think mypy currently assumes that whatever typeshed says for isinstance has no false positives
The text was updated successfully, but these errors were encountered: