ruff
[`pyupgrade`] Prevent infinite loop with `I002` (`UP010`, `UP035`)
#19413
Merged

[`pyupgrade`] Prevent infinite loop with `I002` (`UP010`, `UP035`) #19413

ntBre merged 10 commits into astral-sh:main from danparizher:fix-18729
danparizher
danparizher fix-18729
9bb09bfc
danparizher remove duplicate test
d2f40c9e
github-actions
ntBre ntBre requested a review from ntBre ntBre 57 days ago
ntBre ntBre added bug
ntBre
ntBre commented on 2025-07-28
danparizher extract function
e8f7e876
danparizher
ntBre
ntBre commented on 2025-07-29
danparizher pass `StmtRef` to avoid cloning
aa8ca16f
danparizher danparizher requested a review from ntBre ntBre 51 days ago
ntBre apply test patch
ff6072d7
ntBre tidy up
99de9433
ntBre ntBre changed the title Prevent infinite fix loop between I002 and UP010 when required import is also unnecessary [`pyupgrade`] Prevent infinite loop with I002 (`UP010`, `UP035`) 51 days ago
ntBre ntBre changed the title [`pyupgrade`] Prevent infinite loop with I002 (`UP010`, `UP035`) [`pyupgrade`] Prevent infinite loop with `I002` (`UP010`, `UP035`) 51 days ago
ntBre
ntBre commented on 2025-07-30
danparizher use `continue` instead of return for isort required imports
8d72fe37
ntBre avoid collecting a HashSet, check imports when needed
d9768bb2
ntBre combine tests, fix snapshot
199f49f3
ntBre simplify is_import_required_by_isort (?)
4378e8ed
ntBre
ntBre ntBre merged b07def07 into main 50 days ago
danparizher danparizher deleted the fix-18729 branch 50 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone