[`pyupgrade`] Prevent infinite loop with `I002` (`UP010`, `UP035`) #19413
fix-18729
9bb09bfc
remove duplicate test
d2f40c9e
ntBre
commented
on 2025-07-28
extract function
e8f7e876
ntBre
commented
on 2025-07-29
pass `StmtRef` to avoid cloning
aa8ca16f
apply test patch
ff6072d7
tidy up
99de9433
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
changed the title [`pyupgrade`] Prevent infinite loop with I002 (`UP010`, `UP035`) [`pyupgrade`] Prevent infinite loop with `I002` (`UP010`, `UP035`) 51 days ago
ntBre
commented
on 2025-07-30
use `continue` instead of return for isort required imports
8d72fe37
avoid collecting a HashSet, check imports when needed
d9768bb2
combine tests, fix snapshot
199f49f3
simplify is_import_required_by_isort (?)
4378e8ed
ntBre
merged
b07def07
into main 50 days ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub