pycodestyle icon indicating copy to clipboard operation
pycodestyle copied to clipboard

E711: Expression ending in None followed by == <other> results in incorrect

Open stevecj opened this issue 6 years ago • 0 comments

Example:

assert x % None == tuple(1)

Results in "comparison to None should be 'if cond is None:' [E711]" even though the expression on the left is unknowable and definitely might not be None.

stevecj avatar Oct 17 '19 22:10 stevecj