Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type parameter renaming support #104

Merged
merged 3 commits into from
Sep 6, 2024
Merged

Conversation

dflook
Copy link
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
76 checks passed
@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