This commit is contained in:
Zanie
2023-07-17 13:38:47 -05:00
committed by Zanie Blue
parent a843a00f6b
commit 78c6ede1c9

View File

@@ -405,8 +405,14 @@ pub struct StmtClassDef {
impl Node for StmtClassDef {
const NAME: &'static str = "ClassDef";
const FIELD_NAMES: &'static [&'static str] =
&["name", "bases", "keywords", "body", "decorator_list", "type_params"];
const FIELD_NAMES: &'static [&'static str] = &[
"name",
"bases",
"keywords",
"body",
"decorator_list",
"type_params",
];
}
impl From<StmtClassDef> for Stmt {
fn from(payload: StmtClassDef) -> Self {
@@ -463,7 +469,6 @@ impl From<StmtDelete> for Ast {
}
}
/// See also [TypeAlias](https://docs.python.org/3/library/ast.html#ast.TypeAlias)
#[derive(Clone, Debug, PartialEq)]
pub struct StmtTypeAlias {
@@ -3123,7 +3128,6 @@ impl Node for TypeIgnore {
const FIELD_NAMES: &'static [&'static str] = &[];
}
/// See also [type_param](https://docs.python.org/3/library/ast.html#ast.type_param)
#[derive(Clone, Debug, PartialEq, is_macro::Is)]
pub enum TypeParam {