@@ -125,10 +125,11 @@ def leave_ClassDef(self, original_node, updated_node):
125125 docstring = _get_docstring (name , self .module , self .indentation )
126126
127127 if docstring :
128- ellipsis_class = m .ClassDef (body = m .IndentedBlock (
129- body = [m .SimpleStatementLine (body = [m .Expr (m .Ellipsis ()), m .ZeroOrMore ()]),
130- m .ZeroOrMore ()]))
131- func_class = m .ClassDef (body = m .IndentedBlock (body = [m .FunctionDef (), m .ZeroOrMore ()]))
128+ ellipsis_class = m .ClassDef (body = m .IndentedBlock (body = [
129+ m .SimpleStatementLine (body = [
130+ m .Expr (m .Ellipsis ()), m .ZeroOrMore ()]), m .ZeroOrMore ()]))
131+ func_class = m .ClassDef (body = m .IndentedBlock (
132+ body = [m .FunctionDef (), m .ZeroOrMore ()]))
132133
133134 if m .matches (updated_node , ellipsis_class ):
134135 updated_node = updated_node .deep_replace (
@@ -151,7 +152,8 @@ def visit_FunctionDef(self, node):
151152
152153 def leave_FunctionDef (self , original_node , updated_node ):
153154 name = self ._full_name ()
154- ellipsis_func = m .FunctionDef (body = m .SimpleStatementSuite (body = [m .Expr (m .Ellipsis ())]))
155+ ellipsis_func = m .FunctionDef (
156+ body = m .SimpleStatementSuite (body = [m .Expr (m .Ellipsis ())]))
155157
156158 if m .matches (original_node , ellipsis_func ):
157159 docstring = _get_docstring (name , self .module , self .indentation )
0 commit comments