try to fix stuff in pyi_gen

This commit is contained in:
Lendemor 2024-12-10 21:13:28 +01:00
parent 2b7dc10746
commit 7aae0d6357
2 changed files with 7 additions and 0 deletions

View File

@ -118,6 +118,7 @@ class BaseList(Component, MarkdownComponentMap):
Returns: Returns:
The list component. The list component.
""" """
... ...
@ -251,6 +252,7 @@ class UnorderedList(BaseList, Ul):
Returns: Returns:
The list component. The list component.
""" """
... ...
@ -388,6 +390,7 @@ class OrderedList(BaseList, Ol):
Returns: Returns:
The list component. The list component.
""" """
... ...
@ -474,6 +477,7 @@ class ListItem(Li, MarkdownComponentMap):
Returns: Returns:
The list item component. The list item component.
""" """
... ...
@ -567,6 +571,7 @@ class List(ComponentNamespace):
Returns: Returns:
The list component. The list component.
""" """
... ...

View File

@ -292,6 +292,8 @@ def _generate_docstrings(clzs: list[Type[Component]], props: list[str]) -> str:
]: ]:
new_docstring.append(nline) new_docstring.append(nline)
new_docstring.append(line) new_docstring.append(line)
if new_docstring and new_docstring[-1] != "":
new_docstring.append("")
return "\n".join(new_docstring) return "\n".join(new_docstring)