We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4916e91 commit bbcdd9fCopy full SHA for bbcdd9f
website/documentation/reference.py
@@ -10,7 +10,7 @@
10
def generate_class_doc(class_obj: type, part_title: str) -> None:
11
"""Generate documentation for a class including all its methods and properties."""
12
doc = class_obj.__doc__ or class_obj.__init__.__doc__
13
- if ':param' in doc:
+ if doc and ':param' in doc:
14
subheading('Initializer', anchor_name=create_anchor_name(part_title.replace('Reference', 'Initializer')))
15
description = remove_indentation(doc.split('\n', 1)[-1])
16
lines = [line.replace(':param ', ':') for line in description.splitlines() if ':param' in line]
0 commit comments