Skip to content

Commit 79b15ee

Browse files
committed
Merge branch 'bug/docstring' of https://github.com/parikshit14/modelspec into parikshit14-bug/docstring
2 parents 0cdcac0 + 9f571e8 commit 79b15ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/modelspec/base_types.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,11 @@ def _parse_definition(cls) -> str:
373373
p = parse(cls.__doc__)
374374

375375
# Extract the description, use the long description if available.
376-
return p.long_description if p.long_description else p.short_description
376+
if p.long_description:
377+
definition = p.short_description + p.long_description
378+
else:
379+
definition = p.short_description
380+
return definition
377381

378382
@classmethod
379383
def _parse_allowed_fields(cls) -> Dict[str, Tuple[str, Any]]:

0 commit comments

Comments
 (0)