try to fix stuff in pyi_gen
This commit is contained in:
parent
2b7dc10746
commit
7aae0d6357
@ -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.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
...
|
...
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user