fix(Codemod): restored original docstring replacement

This commit is contained in:
Mark Aron Szulyovszky
2022-02-17 16:53:09 +01:00
committed by GitHub
parent 9d47ee942d
commit f3fee4a4e1
+1 -1
View File
@@ -22,7 +22,7 @@ class ReplaceFunctionCommand(VisitorBasedCodemodCommand):
def leave_FunctionDef(self, original_node: cst.FunctionDef, updated_node: cst.FunctionDef) -> cst.FunctionDef:
functions_docstring = updated_node.get_docstring()
docstring_should_be = ''
docstring_should_be = '"""No docstring here yet."""'
if functions_docstring is not None:
docstring_should_be = '"""\n{}\n\n"""'.format(functions_docstring)