pycodestyle
pycodestyle copied to clipboard
E711: Expression ending in None followed by == <other> results in incorrect
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.