Repository navigation
Conversation
hulkbig
marked this pull request as ready for review
October 12, 2026 09:02
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Related #223.
Support the starred-index syntax introduced by PEP 646, grammar change 1 in the Python 3.11–3.14 grammars. For example,
parso.load_grammar(version='3.11').parse('x = tuple[*Ts]\n', error_recovery=False)currently raisesParserSyntaxErrorfor valid Python.*, including boolean, conditional, and lambda expressions.star_exprCST node and recognize it in the error finder. Existingsubscriptnodes keep their slice meaning.This change covers starred subscripts only. It does not implement starred
*argsannotations or additional PEP 695 support.Validation
Tested from base
b26da16316da46e4770d589ed5f8d404531a22afon Linux:flake8 --extend-ignore F401 parso test/*.py setup.py scripts/with flake8 5.0.4, andzuban checkwith zuban 0.5.1: passed.Jedi downstream checks
Jedi
2e3e9057078a328d846aff43d88e00c13d7cccd5, with its exact submodules, was tested on CPython 3.12.14. The complete default suite has identical outcomes with baseline and patched Parso: 4,002 passed, 21 skipped, 5 xfailed, and 2 failed, across 4,030 tests.Both failures reproduce on the base and stem from this sandbox:
test_complete_expanduserassumes HOME contains a visible entry; this HOME does not.test_relative_importdiscovers the sandbox's/tmp/.gitmarker and chooses a different project root.The suite is therefore not all green, but no test outcome regressed. An additional 17 valid cases and 8 malformed/incomplete cases check parsing, diagnostics, round-tripping, and public-API stability. These checks do not establish TypeVarTuple inference semantics. The opt-in third-party corpus and full Python/OS matrix were not run.
AI disclosure: AI tools were used for the implementation, tests, and a separate independent code review. The validation results above come from executed checks.