mirror of
https://github.com/astral-sh/ruff.git
synced 2025-12-01 00:28:22 +00:00
## Summary Resolves #15859. The rule now adds parentheses if the original call wraps an unary expression and is: * The left-hand side of a binary expression where the operator is `**`. * The caller of a call expression. * The subscripted of a subscript expression. * The object of an attribute access. The fix will also be marked as unsafe if there are any comments in its range. ## Test Plan `cargo nextest run` and `cargo insta test`. |
||
|---|---|---|
| .. | ||
| resources | ||
| src | ||
| Cargo.toml | ||