Skip to content

Update __all__ when renaming exported names - #945

Closed
Narek-Khachikyan wants to merge 1 commit into
python-rope:masterfrom
Narek-Khachikyan:fix/rename-all-402
Closed

Narek-Khachikyan wants to merge 1 commit into
python-rope:masterfrom
Narek-Khachikyan:fix/rename-all-402

Conversation

@Narek-Khachikyan

Copy link
Copy Markdown

Description

Renaming an exported name left its old spelling in __all__, causing star imports to fail. Update matching literal export entries when their module name resolves to the renamed symbol.

Fixes #402.

The star-import regression failed with AttributeError before the fix and passes afterward. Python 3.14 validation passed with 2,177 tests. Rename tests passed on Python 3.11 and 3.14, and pre-commit checks passed for the changed files. The Python 3.11 full run has one existing fixture error because its bundled _sqlite3 lacks __file__.

Checklist

  • I have added tests that prove my fix is effective
  • I have updated CHANGELOG.md

@Narek-Khachikyan Narek-Khachikyan closed this by deleting the head repository Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update __all__ when renaming an imported variable/function/class

1 participant