ruff
764d9ab4 - Allow `repeated-equality-comparison` for mixed operations (#12369)

Commit
1 year ago
Allow `repeated-equality-comparison` for mixed operations (#12369) ## Summary This PR allows us to fix both expressions in `foo == "a" or foo == "b" or ("c" != bar and "d" != bar)`, but limits the rule to consecutive comparisons, following https://github.com/astral-sh/ruff/issues/7797. I think this logic was _probably_ added because of https://github.com/astral-sh/ruff/pull/12368 -- the intent being that we'd replace the _entire_ expression.
Author
Parents
Loading