Skip to content

Add parser support for PEP 696 #11099

@JelleZijlstra

Description

@JelleZijlstra

Ruff's parser does not support the new syntax introduced by PEP 696:

def f[T=int](): pass

I noticed because I'm adding this syntax to CPython and Ruff started failing in CI :).

I saw that you recently switched to a handwritten parser. I'm interested in taking a look at that parser, so I'd like to try to implement this myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    parserRelated to the parserpython313Related to Python 3.13

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions