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
Mypy should support multiple isinstance checks in a condition:
def f(x: A, y: A) -> None:
if isinstance(x, B) and isinstance(y, B):
# Types of both x and y should be B here, but currently only x is B
...
class A: pass
class B(A): pass