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
but it's still useful :
Although this error message is flat out wrong, I do see the inadvertent value here: NoneType is a singleton inhabitant type, so it is more likely accidental, rather than intentionally checking that both values are None. If I wanted that I would write:
aisNoneandbisNone
perhaps:
a==b# warning: the operands only overlap with "None", consider writing "a is None and b is None" [none-overlap]
The text was updated successfully, but these errors were encountered:
but it's still useful :
Although this error message is flat out wrong, I do see the inadvertent value here:
NoneType
is a singleton inhabitant type, so it is more likely accidental, rather than intentionally checking that both values areNone
. If I wanted that I would write:perhaps:
The text was updated successfully, but these errors were encountered: