Skip to content

Add support for star-unpacking of comprehensions (PEP 798)#23788

Merged
charliermarsh merged 1 commit intomainfrom
charlie/starred-unpack
Mar 9, 2026
Merged

Add support for star-unpacking of comprehensions (PEP 798)#23788
charliermarsh merged 1 commit intomainfrom
charlie/starred-unpack

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

Summary

In Python 3.15, you can star-unpack comprehensions (e.g., [*x for x in y]) via PEP 798. This PR adds support to the parser.

@charliermarsh charliermarsh added the parser Related to the parser label Mar 7, 2026
@charliermarsh charliermarsh force-pushed the charlie/starred-unpack branch from d724b61 to 954bfec Compare March 7, 2026 15:54
@astral-sh-bot
Copy link
Copy Markdown

astral-sh-bot bot commented Mar 7, 2026

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@charliermarsh charliermarsh marked this pull request as ready for review March 7, 2026 15:55
@charliermarsh charliermarsh merged commit 8bc437e into main Mar 9, 2026
47 checks passed
@charliermarsh charliermarsh deleted the charlie/starred-unpack branch March 9, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parser Related to the parser

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants