mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-12 00:45:28 +00:00
## Summary This PR ensures that if a list `x` is modified within a `for` loop, we avoid flagging `list(x)` as unnecessary. Previously, we only detected calls to exactly `.append`, and they couldn't be nested within other statements. Closes https://github.com/astral-sh/ruff/issues/9925. |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.toml | ||