Derived from the flake8-bugbear linter.
What it does#
Checks for useless comparisons.
Why is this bad?#
Useless comparisons have no effect on the program, and are often included
by mistake. If the comparison is intended to enforce an invariant, prepend
the comparison with an
assert. Otherwise, remove it entirely.