We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16f3a2c commit 6a8f2ccCopy full SHA for 6a8f2cc
scripts/check_async_docstrings.py
@@ -36,7 +36,7 @@
36
continue
37
38
# If the sync method has a docstring, check if it matches the async dostring
39
- if isinstance(sync_method.value[0].value, str):
+ if sync_method and isinstance(sync_method.value[0].value, str):
40
sync_docstring = sync_method.value[0].value
41
async_docstring = async_method.value[0].value
42
expected_docstring = sync_to_async_docstring(sync_docstring)
0 commit comments