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
This performs an exact type comparison with "is" instead of "==".
Most (maybe all?) of the rest of the places where "==" was used
have been changed previously, but this on fell through the cracks.
Like the None object, type objects use reference-based equality
comparison, and the idiomatic ways to check against them are "is"
for exactly comparisons and isinstance/issubclass otherwise.
0 commit comments