Skip to content

Commit f45ddd7

Browse files
committed
fix: do not add a colon after a param name if there is no description
1 parent fe683cb commit f45ddd7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arkdoc/generator/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def generate_sections(self, functions: List[spec.Function], with_hr: bool = Fals
8080
self.formatter.h4(self.formatter.plural("Parameter", len(func.desc.params))),
8181
self.formatter.ul(
8282
[
83-
f"{self.formatter.inline_code(p.name)}: {p.desc}"
83+
f"{self.formatter.inline_code(p.name)}: {p.desc}" if p.desc else self.formatter.inline_code(p.name)
8484
for p in func.desc.params
8585
]
8686
),

0 commit comments

Comments
 (0)