Skip to content

Add type parameter renaming support#104

Merged
dflook merged 3 commits into
python312from
python312-typeparam-rename
Sep 6, 2024
Merged

Add type parameter renaming support#104
dflook merged 3 commits into
python312from
python312-typeparam-rename

Conversation

@dflook
Copy link
Copy Markdown
Owner

@dflook dflook commented Sep 5, 2024

This adds support to the renamer for type parameters, but there are situations where renaming a type parameter is unsafe.
It won't be possible to do this completely safely until annotation namespaces are implemented.
For now actually renaming type parameters is disabled.

It's not practical to rename type parameters safely until we can properly model annotation namespaces.
preserve_locals/globals should be a list.
Cast it to a list if it looks like it has mistaken been passed as a string.
@dflook dflook merged commit 678a761 into python312 Sep 6, 2024
@dflook dflook deleted the python312-typeparam-rename branch September 6, 2024 07:40
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.

1 participant