Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
mzouink committed Feb 16, 2024
1 parent 6d4b7a2 commit c841a16
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/add_docstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit c841a16

Please sign in to comment.