ignore expressions in class definition body (#26)
This commit is contained in:
parent
47f563908a
commit
e89bc93b5f
@ -1396,6 +1396,7 @@ impl TopLevelComposer {
|
||||
}
|
||||
}
|
||||
ast::StmtKind::Pass => {}
|
||||
ast::StmtKind::Expr { value: _ } => {} // typically a docstring; ignoring all expressions matches CPython behavior
|
||||
_ => return Err("unsupported statement type in class definition body".into()),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user