Derived from the flake8-simplify linter.
Fix is sometimes available.
What it does#
if expressions that can be replaced with
Why is this bad?#
if expressions that evaluate to
True for a truthy condition an
for a falsey condition can be replaced with
bool() calls, which are more
concise and readable.