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
Currently there are many places in the code base which use == and != while comparing bool type objects.
Replace all such occurrences of == <bool-type-object> with is <bool-type-object> and != <bool-type-object> with is not <bool-type-object>. For example, == None with is None and != None with is not None.
Description of the problem
Currently there are many places in the code base which use
==
and!=
while comparingbool
type objects.Replace all such occurrences of
== <bool-type-object>
withis <bool-type-object>
and!= <bool-type-object>
withis not <bool-type-object>
. For example,== None
withis None
and!= None
withis not None
.Example of the problem
References/Other comments
[1] https://dbader.org/blog/difference-between-is-and-equals-in-python
The text was updated successfully, but these errors were encountered: