wemake-python-styleguide
wemake-python-styleguide copied to clipboard
Eval boolean operations
We need to eval things we can.
This issue is about working with booleans.
For example: True and False is False, we can easily find this out.
But, True and False is not semantically the same as False, because False is ast.NameConst and True and False is ast.BinOp
That's why evaluating booleans will give us new potential to find new bugs.
Related: https://github.com/wemake-services/wemake-python-styleguide/issues/1009