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

Python 3.12 #94

Merged
merged 55 commits into from
Sep 15, 2024
Merged

Python 3.12 #94

merged 55 commits into from
Sep 15, 2024

Conversation

dflook
Copy link
Owner

@dflook dflook commented Sep 19, 2023

Adds Python 3.12 support

  • Type parameter syntax
  • Add type parameter syntax property tests
  • Update renamer for new nodes
  • Implement pep701 f-strings
  • Add 3.12 xtest manifest
  • Resolve deprecation warnings
  • Update changelog

dflook added 18 commits August 7, 2024 12:21
Fix to pass with non-deterministic dict order
…ntext

They create a new binding in the class namespace
These will become class attributes.
This fixes situations where renaming was allowed due to the actual namebinding being placed in a nonlocal scope by a name in load context in the class scope.
The previous checks were not enough, as name references we know are a builtin could get redefined in class scope.
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 b04544d into main Sep 15, 2024
76 checks passed
@dflook dflook deleted the python312 branch September 15, 2024 16:18
@Josverl
Copy link

Josverl commented Sep 15, 2024

Thanks for all the effort, much appreciated.

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