Skip to content

Commit 9056b43

Browse files
authored
Update check_docstrings.py
1 parent d098f0f commit 9056b43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/scripts/check_docstrings.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ def extract_function_arguments(start, lines):
270270
for item in items:
271271
result = item.split(")")[0].split("=")[0].strip()
272272
if bool(result):
273-
arguments.append(result)
273+
# Sometimes arguments have colons. We need everything before.
274+
arguments.append(result.split(":")[0].strip())
274275

275276
# Fix arguments for methods
276277
for keyword in method_keywords:
@@ -735,7 +736,7 @@ def main():
735736
default=".",
736737
nargs="+",
737738
type=str,
738-
help="Directory where the cache files are located.",
739+
help="Directories to scan for docsctring compliant python files.",
739740
)
740741
args = parser.parse_args()
741742

0 commit comments

Comments
 (0)