not-is-test (E714)
Added in v0.0.28 · Related issues · View source
Derived from the pycodestyle linter.
Fix is always available.
What it does
Checks for identity comparisons using not {foo} is {bar}.
Why is this bad?
According to PEP8, testing for an object's identity with is not is more
readable.
Example
Use instead: