Derived from the flake8-simplify linter.
Fix is sometimes available.
What it does#
else-blocks that can be replaced with a ternary operator.
Why is this bad?#
else-blocks that assign a value to a variable in both branches can
be expressed more concisely by using a ternary operator.