-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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: Add support for type parameter defaults #17688
Merged
Merged
Commits on Oct 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1ced5b4 - Browse repository at this point
Copy the full SHA 1ced5b4View commit details -
Python: Add grammar support for type defaults
Also fixes an oversight in the grammar: starred expressions should be allowed inside the subscript of an `Index` expression.
Configuration menu - View commit details
-
Copy full SHA for 882249e - Browse repository at this point
Copy the full SHA 882249eView commit details -
Python: Regenerate parser files
Two new files -- alloc.h and array.h -- suddenly appeared. Presumably they are used by the somewhat newer version of tree-sitter. To be safe, I included them in this commit.
Configuration menu - View commit details
-
Copy full SHA for 6545bff - Browse repository at this point
Copy the full SHA 6545bffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 55ee3eb - Browse repository at this point
Copy the full SHA 55ee3ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2af0d78 - Browse repository at this point
Copy the full SHA 2af0d78View commit details -
Python: Fix dbscheme/AST autogeneration
There was an errant `ql` in the relevant paths, a leftover from the move from the internal repo. Also, we can no longer rely on an intree version of the CodeQL CLI, so from now on we'll just assume it's present in the path. (On Codespaces, `gh codeql` is a decent replacement, especially if using the `install-stub` functionality.
Configuration menu - View commit details
-
Copy full SHA for 36d8974 - Browse repository at this point
Copy the full SHA 36d8974View commit details -
Configuration menu - View commit details
-
Copy full SHA for 182a192 - Browse repository at this point
Copy the full SHA 182a192View commit details -
Python: Update test expectations
Note that this still includes the somewhat puzzling parsing of `Spam[**P2]` as an exponentiation with an empty left hand side. When we fix that bug, we should also update this test to contain actually valid syntax.
Configuration menu - View commit details
-
Copy full SHA for 819b3d7 - Browse repository at this point
Copy the full SHA 819b3d7View commit details -
Python: Add up-/downgrade scripts
Adds up- and downgrade scripts for the support for type parameter defaults. In the upgrade direction we do nothing, matching the behaviour of `getDefault` not having a result for old databases. In the downgrade direction, we explicitly remove the relevant child (via the `py_exprs` database relation) for `TypeVar`, `TypeVarTuple`, and `ParamSpec` parameters.
Configuration menu - View commit details
-
Copy full SHA for 8630f57 - Browse repository at this point
Copy the full SHA 8630f57View commit details -
Configuration menu - View commit details
-
Copy full SHA for d905010 - Browse repository at this point
Copy the full SHA d905010View commit details -
Configuration menu - View commit details
-
Copy full SHA for 417e60a - Browse repository at this point
Copy the full SHA 417e60aView commit details
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.