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
Right now mypy spots an error on the first if condition but it would be great if it could also complain on the second one which seems a better expression of the first test:
in check is not support right now, as far as I remember. It could be a cool feature. And quite easy one.
We can just translate x in ('a', 'b') expression into x == 'a' or x == 'b'. And everything should work the same way.
Right now mypy spots an error on the first if condition but it would be great if it could also complain on the second one which seems a better expression of the first test:
mypy version:
The text was updated successfully, but these errors were encountered: