wemake-python-styleguide icon indicating copy to clipboard operation
wemake-python-styleguide copied to clipboard

Eval boolean operations

Open sobolevn opened this issue 5 years ago • 0 comments

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

sobolevn avatar Dec 05 '19 16:12 sobolevn