Skip to content

Commit

Permalink
Merge remote-tracking branch 'nicegui/main' into feature/client_data
Browse files Browse the repository at this point in the history
  • Loading branch information
Alyxion committed Dec 20, 2024
2 parents a91f04a + bbcdd9f commit 15c600f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/documentation/reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def generate_class_doc(class_obj: type, part_title: str) -> None:
"""Generate documentation for a class including all its methods and properties."""
doc = class_obj.__doc__ or class_obj.__init__.__doc__
if ':param' in doc:
if doc and ':param' in doc:
subheading('Initializer', anchor_name=create_anchor_name(part_title.replace('Reference', 'Initializer')))
description = remove_indentation(doc.split('\n', 1)[-1])
lines = [line.replace(':param ', ':') for line in description.splitlines() if ':param' in line]
Expand Down

0 comments on commit 15c600f

Please sign in to comment.