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
classA: ...
A() or1# error, we know that it's not a subtype that has an `__eq__`reveal_type(A()) # Exactly[A]deff(a: A):
aor1# no errorreveal_type(a) # A
classA: ...
classB(A): ...
isinstance(A(), B) # errorreveal_type(A()) # Exactly[A]deff(a: A):
isinstance(a, B) # no errorreveal_type(a) # A
Would provide a lot of benefits in terms of 'type tightness'(strict-equality).
The text was updated successfully, but these errors were encountered:
Would provide a lot of benefits in terms of 'type tightness'(strict-equality).
The text was updated successfully, but these errors were encountered: