mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Add support for PEP 696 syntax (#11120)
This commit is contained in:
parent
45725d3275
commit
cd3e319538
49 changed files with 4338 additions and 669 deletions
|
@ -0,0 +1,5 @@
|
|||
type X[**P = *int] = int
|
||||
type X[**P = yield x] = int
|
||||
type X[**P = yield from x] = int
|
||||
type X[**P = x := int] = int
|
||||
type X[**P = *int] = int
|
|
@ -0,0 +1,2 @@
|
|||
type X[**P =] = int
|
||||
type X[**P =, T2] = int
|
|
@ -0,0 +1,6 @@
|
|||
type X[T = *int] = int
|
||||
type X[T = yield x] = int
|
||||
type X[T = (yield x)] = int
|
||||
type X[T = yield from x] = int
|
||||
type X[T = x := int] = int
|
||||
type X[T: int = *int] = int
|
|
@ -0,0 +1,3 @@
|
|||
type X[T =] = int
|
||||
type X[T: int =] = int
|
||||
type X[T1 =, T2] = int
|
|
@ -0,0 +1,5 @@
|
|||
type X[*Ts = *int] = int
|
||||
type X[*Ts = *int or str] = int
|
||||
type X[*Ts = yield x] = int
|
||||
type X[*Ts = yield from x] = int
|
||||
type X[*Ts = x := int] = int
|
|
@ -0,0 +1,2 @@
|
|||
type X[*Ts =] = int
|
||||
type X[*Ts =, T2] = int
|
Loading…
Add table
Add a link
Reference in a new issue