ruff/crates/ruff_linter/src/cst
Charlie Marsh 02fc521369
Wrap expressions in parentheses when negating (#10346)
## Summary

When negating an expression like `a or b`, we need to wrap it in
parentheses, e.g., `not (a or b)` instead of `not a or b`, due to
operator precedence.

Closes https://github.com/astral-sh/ruff/issues/10335.

## Test Plan

`cargo test`
2024-03-11 18:20:55 -04:00
..
helpers.rs Wrap expressions in parentheses when negating (#10346) 2024-03-11 18:20:55 -04:00
matchers.rs Update string nodes for implicit concatenation (#7927) 2023-11-24 17:55:41 -06:00
mod.rs Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00