ruff
[`pyupgrade`] [`ruff`] Don't apply renamings if the new name is shadowed in a scope of one of the references to the binding (`UP049`, `RUF052`)
#16032
Merged

[`pyupgrade`] [`ruff`] Don't apply renamings if the new name is shadowed in a scope of one of the references to the binding (`UP049`, `RUF052`) #16032

AlexWaygood merged 6 commits into astral-sh:main from InSyncWithFoo:UP049
InSyncWithFoo
InSyncWithFoo [`pyupgrade`] Better fix logic (`UP049`)
a0ab7608
InSyncWithFoo InSyncWithFoo requested a review from AlexWaygood AlexWaygood 223 days ago
github-actions
InSyncWithFoo
AlexWaygood
AlexWaygood commented on 2025-02-08
AlexWaygood
AlexWaygood commented on 2025-02-08
AlexWaygood fixes and simplifications
a9001088
AlexWaygood fix more holistically
c95d14e4
AlexWaygood AlexWaygood added bug
AlexWaygood AlexWaygood added fixes
AlexWaygood .
5a6f8033
AlexWaygood .
ae283d4a
AlexWaygood .
b664a9f0
AlexWaygood
AlexWaygood approved these changes on 2025-02-08
AlexWaygood
AlexWaygood AlexWaygood changed the title [`pyupgrade`] Better fix logic (`UP049`) [`pyupgrade`] [`ruff`] Don't apply renamings if the new name is shadowed in a scope of one of the references to the binding (`UP049`, `RUF052`)) 223 days ago
AlexWaygood AlexWaygood changed the title [`pyupgrade`] [`ruff`] Don't apply renamings if the new name is shadowed in a scope of one of the references to the binding (`UP049`, `RUF052`)) [`pyupgrade`] [`ruff`] Don't apply renamings if the new name is shadowed in a scope of one of the references to the binding (`UP049`, `RUF052`) 223 days ago
AlexWaygood AlexWaygood merged a04ddf2a into main 223 days ago
InSyncWithFoo InSyncWithFoo deleted the UP049 branch 223 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone