-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-137600: Promote ast
node constructor deprecation warnings to errors
#137601
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
base: main
Are you sure you want to change the base?
gh-137600: Promote ast
node constructor deprecation warnings to errors
#137601
Conversation
@picnixz As mentioned in #121162 (comment), now that the constructors raise on missing and unknown fields, some of the checks that were added for |
This takes me back as the original PR is one of my very first contributions to CPython! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest using msg = ... + re.escape() for assertRaisesRegex() where 80 chars limit is exceeded.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
ast
node constructor deprecation warnings to errors #137600📚 Documentation preview 📚: https://cpython-previews--137601.org.readthedocs.build/