ruff
86b1ae93 - Add rule to enforce parentheses in `a or b and c` (#9440)

Commit
1 year ago
Add rule to enforce parentheses in `a or b and c` (#9440) Fixes #8721 ## Summary This implements the rule proposed in #8721, as RUF021. `and` always binds more tightly than `or` when chaining the two together. (This should definitely be autofixable, but I'm leaving that to a followup PR for now.) ## Test Plan `cargo test` / `cargo insta review`
Author
Parents
Loading