Skip to content

Parser support for PEP 798 in Python 3.15 #25098

@JelleZijlstra

Description

@JelleZijlstra

Summary

The Ruff parser currently has some partial support for PEP 798 (new in Python 3.15); it supports list comprehensions but not other kinds of comprehensions. [*x for x in y] is accepted; {*x for x in y} is not.

I'm working on this and also other PEP 798 fallout in the linter, formatter, and type checker.

Version

No response

Metadata

Metadata

Assignees

Labels

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions