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
Comparisons to the singleton objects, like True, False, and None, should be done with identity, not equality. Use “is” or “is not”. Identity checks are faster than equality checks. Bad: python value = fx() if value != None: print(value) Good: ```python value = fx() if value is not None: …
Occurrences
There is 1 occurrence of this issue in the repository.
Description
Comparisons to the singleton objects, like
True
,False
, andNone
, should be done with identity, not equality. Use “is” or “is not”. Identity checks are faster than equality checks. Bad:python value = fx() if value != None: print(value)
Good: ```python value = fx() if value is not None: …Occurrences
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/hiancdtrsnm/video-diet/issue/FLK-E711/occurrences/
The text was updated successfully, but these errors were encountered: