diff --git a/ast/src/generic.rs b/ast/src/generic.rs index eff85dc837..e3568a3e39 100644 --- a/ast/src/generic.rs +++ b/ast/src/generic.rs @@ -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 for Stmt { fn from(payload: StmtClassDef) -> Self { @@ -463,7 +469,6 @@ impl From 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 {