-
-
Notifications
You must be signed in to change notification settings - Fork 419
Open
Description
Meaningless number operations are prohibited by WPS345.
But meaningless logical operations are not handled
# not noticed
myvar = True or False
myvar = True and False
myvar = call() and False
myvar = call() and not True
myvar = call() or FalseThis may also be relevant for some bitwise operations
# noticed by WPS345
myvar = 1 | False
myvar = 1 | 0
myvar = 1 & 0
# not noticed
myvar = 1 & True
myvar = 1 | True
myvar = 5 | 5
myvar = 452 & 452Should we deal with this?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels