Skip to content

Commit 6a8f2cc

Browse files
committed
fix check async docstrings script
1 parent 16f3a2c commit 6a8f2cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/check_async_docstrings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
continue
3737

3838
# If the sync method has a docstring, check if it matches the async dostring
39-
if isinstance(sync_method.value[0].value, str):
39+
if sync_method and isinstance(sync_method.value[0].value, str):
4040
sync_docstring = sync_method.value[0].value
4141
async_docstring = async_method.value[0].value
4242
expected_docstring = sync_to_async_docstring(sync_docstring)

0 commit comments

Comments
 (0)