Format
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user