boolean-chained-comparison (PLR1716)
Derived from the Pylint linter.
Fix is always available.
This rule is unstable and in preview. The --preview
flag is required for use.
What it does
Check for chained boolean operations that can be simplified.
Why is this bad?
Refactoring the code will improve readability for these cases.
Example
Use instead: