ruff/crates/ruff_python_ast
Charlie Marsh 0304623878
[perflint] Catch a wider range of mutations in PERF101 (#9955)
## 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.
2024-02-12 12:17:55 -05:00
..
src [perflint] Catch a wider range of mutations in PERF101 (#9955) 2024-02-12 12:17:55 -05:00
tests Remove type parameter from parse_* methods (#9466) 2024-01-11 19:41:19 +01:00
Cargo.toml Use Rust 1.76 (#9897) 2024-02-08 18:20:08 +00:00