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
It was decided when --strict-equality was implemented that (according to #6370) "X and None are overlapping even in strict-optional mode".
Current documentation reads:
* X and None are overlapping even in strict-optional mode. This is to allow
'assert x is not None' for x defined as 'x = None # type: str' in class body
(otherwise mypy itself would have couple dozen errors because of this).
mypy does not complain on line 4 of this code:
would it be possible to raise a Non-overlapping identity check error in that case, as in the previous line?
mypy version:
The text was updated successfully, but these errors were encountered: