mirror of https://github.com/astral-sh/ruff
- Fixes #21098. - When rewriting set.add(...) calls inside for-loops into set.update(...), wrap an unparenthesized generator-expression argument in parentheses to avoid altering scope and causing NameError. - Adds targeted logic in for_loop_set_mutations to detect Expr::Generator with parenthesized == false and parenthesize its source text. |
||
|---|---|---|
| .. | ||
| resources | ||
| src | ||
| Cargo.toml | ||