ruff/crates/ruff_linter
Dan Parizher b07def07c9
[pyupgrade] Prevent infinite loop with I002 (UP010, UP035) (#19413)
## Summary

Fixes #18729 and fixes #16802

## Test Plan

Manually verified via CLI that Ruff no longer enters an infinite loop by
running:
```sh
echo 1 | ruff --isolated check - --select I002,UP010 --fix
```
with `required-imports = ["from __future__ import generator_stop"]` set
in the config, confirming “All checks passed!” and no snapshots were
generated.

---------

Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>
2025-07-31 15:17:27 -04:00
..
resources fix missing-required-imports introducing syntax error after dosctring ending with backslash (#19505) 2025-07-30 12:12:46 -04:00
src [pyupgrade] Prevent infinite loop with I002 (UP010, UP035) (#19413) 2025-07-31 15:17:27 -04:00
Cargo.toml Bump 0.12.7 (#19627) 2025-07-29 18:18:42 -04:00