-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
improvement: Add AST subclass constructors #11880
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
Merged
JelleZijlstra
merged 16 commits into
python:main
from
bzoracler:ast-subclass-constructors
May 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d5e0838
improvement: shift node location attributes to classes which have them
bzoracler 75a2e8e
Update _ast.pyi
bzoracler f9a2cb9
improvement: add missing node field
bzoracler d886a45
improvement: add precise AST subclass constructors
bzoracler 25d4dad
test: update allowlist
bzoracler 70fdb52
fix: delegate version-specific nodes to separate allowlists
bzoracler c88c4aa
fix: typo in parameter
bzoracler 1135b28
style: Shorten signatures
bzoracler 9655775
fix: remove unnecessary keyword-only constraint
bzoracler bb880f2
improvement: don't require args of type `expr_context` to be passed t…
bzoracler c82a5fa
feat: empty list defaults in Python 3.13
bzoracler aea4c01
style: keep `_SliceAttributes` together with usage location
bzoracler 1e489b1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b82fc4e
fix: add missing `default_value` field for Python 3.13
bzoracler cc50db4
improvement: add new Python 3.13 class variable
bzoracler cc2cd65
fix: wrong attribute conditional location
bzoracler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: remove unnecessary keyword-only constraint
- Loading branch information
commit 9655775384bf9ae8b2c69e4b07f0baafd0dbaf3e
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 don't think type_comment needs to be keyword-only on this overload.
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.
Addressed in 9655775