diff --git a/reflex/components/radix/themes/layout/list.pyi b/reflex/components/radix/themes/layout/list.pyi index 8517a6897..3978509db 100644 --- a/reflex/components/radix/themes/layout/list.pyi +++ b/reflex/components/radix/themes/layout/list.pyi @@ -118,6 +118,7 @@ class BaseList(Component, MarkdownComponentMap): Returns: The list component. + """ ... @@ -251,6 +252,7 @@ class UnorderedList(BaseList, Ul): Returns: The list component. + """ ... @@ -388,6 +390,7 @@ class OrderedList(BaseList, Ol): Returns: The list component. + """ ... @@ -474,6 +477,7 @@ class ListItem(Li, MarkdownComponentMap): Returns: The list item component. + """ ... @@ -567,6 +571,7 @@ class List(ComponentNamespace): Returns: The list component. + """ ... diff --git a/reflex/utils/pyi_generator.py b/reflex/utils/pyi_generator.py index 2d3d2664e..114512f5c 100644 --- a/reflex/utils/pyi_generator.py +++ b/reflex/utils/pyi_generator.py @@ -292,6 +292,8 @@ def _generate_docstrings(clzs: list[Type[Component]], props: list[str]) -> str: ]: new_docstring.append(nline) new_docstring.append(line) + if new_docstring and new_docstring[-1] != "": + new_docstring.append("") return "\n".join(new_docstring)