From 7aae0d63578ec784057718b545c6cdc4e3b21073 Mon Sep 17 00:00:00 2001 From: Lendemor Date: Tue, 10 Dec 2024 21:13:28 +0100 Subject: [PATCH] try to fix stuff in pyi_gen --- reflex/components/radix/themes/layout/list.pyi | 5 +++++ reflex/utils/pyi_generator.py | 2 ++ 2 files changed, 7 insertions(+) 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)