-
Notifications
You must be signed in to change notification settings - Fork 192
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
Implement support for PEP-695 #922
Comments
@zsol - Just for our own internal planning, would you expect / is it a goal for LibCST to support PEP 695 in time for the Python 3.12 release (2023-10-02, at time of writing)? Or will it follow after? |
Yeah I want LibCST to support the latest available CPython release. We'll make it happen. |
Really interested in contributing, even on small parts, on this. Is this mainly for maintainers (ie, internally) or are you guys open for contributions? |
More than happy to accept contributions! Which parts are interesting? Grammar changes are pure Rust, CST are a mix of Python & Rust, scoping changes are pure Python |
If helpful, here are the changes in Ruff which includes references to the pyflakes implementation and RustPython parser changes :) astral-sh/ruff#6109 |
#1004 has the grammar and CST changes. Scoping changes seem way more complicated than I anticipated so it won't fit into this weekend :) |
https://jellezijlstra.github.io/pep695 has a lot of discussion of scoping, in case it's helpful. |
I've got the scoping rules more-or-less implemented in #1014, but I have two questions:
|
|
This is awesome -- thank you @zsol! Are you able to publish a new version to crates.io with Python 3.12 support? |
There will be:
These changes are scheduled to be included in 3.12
The text was updated successfully, but these errors were encountered: