From c841a16fee7ef614a40c9c9bd5812419db44a45c Mon Sep 17 00:00:00 2001 From: Marwan Zouinkhi Date: Thu, 15 Feb 2024 19:15:58 -0500 Subject: [PATCH] fix code --- .github/add_docstring.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/add_docstring.py b/.github/add_docstring.py index 5aeaa94ef..ef7d1ed4a 100644 --- a/.github/add_docstring.py +++ b/.github/add_docstring.py @@ -60,14 +60,6 @@ def addDocstring(filePath): # Insert the generated docstring to the Function node node.value.insert(0, f'"""\n{docstring}\n"""') - - - # Insert the generated docstring to the Function node - if node.next and node.next.type == "comment": - node.next.insert_after(f'"""\n{docstring}\n"""') - else: - node.value.insert(0, f'"""\n{docstring}\n"""') - # Write the modified Python file back to disk with open(filePath, "w", encoding="utf-8") as file: file.write(code.dumps())