Derived from the flake8-simplify linter.
Fix is sometimes available.
What it does#
if statements that can be replaced with
Why is this bad?#
if statements that return
True for a truthy condition and
a falsey condition can be replaced with boolean casts.