Derived from the flake8-simplify linter.
Fix is always available.
What it does#
if expressions that can be replaced by negating a given
Why is this bad?#
if expressions that evaluate to
False for a truthy condition an
for a falsey condition can be replaced with
not operators, which are more
concise and readable.