-
Notifications
You must be signed in to change notification settings - Fork 892
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
lib2to3 grammar no longer able to parse Python 3.10. #993
Comments
See also Issue #894, Issue #448, and possibly other issues. (A number of alternatives are discussed - see also psf/black#2318) |
I started creating a new parser that uses the The new code is in top-of-tree now, if you'd like to take a look. |
Is the new parser intended to become a separate package, or only used by yapf? |
I would be happy to make it a separate package. It might take a bit, because of lack of time etc. So feel free to crib parts of it from YAPF. |
Hello, Thank you for an update and your efforts! |
Closed with 7c408b9. |
Amazing! Thank you!!! 🙏 |
Thanks from me as well! |
It appears that with the introduction of PEP 634 the lib2to3 parser is no longer able to correctly parse all python code.
Also from the 2to3 documentation:
I'm not sure what the correct course of action might be.
The text was updated successfully, but these errors were encountered: