expr-or-not-expr (SIM221)#
Derived from the flake8-simplify linter.
Fix is always available.
What it does#
Checks for or
expressions that include both an expression and its
negation.
Why is this bad?#
An or
expression that includes both an expression and its negation will
always evaluate to True
.