$ errors.fyi/flake8/E712 128 namespaces · 4,025 codes
flake8 · flake8/E712
E712

Comparison to True or False

A value is compared to True or False using == or != rather than a truthiness check. Use 'if x:' or 'if not x:' instead of 'if x == True:'.

References

In this namespace

» community-maintained · contribute on GitHub npm i -g errors-fyi && errorfyi ENOENT