mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-20 18:40:28 +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
|
@ -3132,6 +3132,7 @@ pub struct TypeParamTypeVar {
|
|||
pub range: TextRange,
|
||||
pub name: Identifier,
|
||||
pub bound: Option<Box<Expr>>,
|
||||
pub default: Option<Box<Expr>>,
|
||||
}
|
||||
|
||||
impl From<TypeParamTypeVar> for TypeParam {
|
||||
|
@ -3145,6 +3146,7 @@ impl From<TypeParamTypeVar> for TypeParam {
|
|||
pub struct TypeParamParamSpec {
|
||||
pub range: TextRange,
|
||||
pub name: Identifier,
|
||||
pub default: Option<Box<Expr>>,
|
||||
}
|
||||
|
||||
impl From<TypeParamParamSpec> for TypeParam {
|
||||
|
@ -3158,6 +3160,7 @@ impl From<TypeParamParamSpec> for TypeParam {
|
|||
pub struct TypeParamTypeVarTuple {
|
||||
pub range: TextRange,
|
||||
pub name: Identifier,
|
||||
pub default: Option<Box<Expr>>,
|
||||
}
|
||||
|
||||
impl From<TypeParamTypeVarTuple> for TypeParam {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue