Skip to content

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
@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.

2 participants