Skip to content

Commit

Permalink
Fixed arguments function
Browse files Browse the repository at this point in the history
  • Loading branch information
palisadoes committed Jan 12, 2025
1 parent 8817ed4 commit 83cc020
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/scripts/check_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ def extract_function_arguments(start, lines):
for item in items:
result = item.split(")")[0].split("=")[0].strip()
if bool(result):
arguments.append(result)
# Sometimes arguments have colons. We need everything before.
arguments.append(result.split(":")[0].strip())

# Fix arguments for methods
for keyword in method_keywords:
Expand Down

0 comments on commit 83cc020

Please sign in to comment.