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 2381ded commit 92e27a3Copy full SHA for 92e27a3
src/griffe_typingdoc/_docstrings.py
@@ -27,7 +27,7 @@
27
28
29
def _no_self_params(func: Function) -> list[Parameter]:
30
- if func.parent and func.parent.is_class and func.parameters[0].name in {"self", "cls"}:
+ if func.parent and func.parent.is_class and func.parameters and func.parameters[0].name in {"self", "cls"}:
31
return list(func.parameters)[1:]
32
return list(func.parameters)
33
0 commit comments