From ceaa015c91e6282b887c6a9e0194a58ca5006212 Mon Sep 17 00:00:00 2001 From: Gnanasaikiran Date: Sat, 15 Nov 2025 16:46:05 +0530 Subject: [PATCH] fix: Use Markdown widget and fix docstring formatting - Replace Static with Markdown for proper help text rendering - Remove extra blank lines from run_tui docstring - Add period to docstring summary for PEP 257 compliance - Fix closing quotes indentation --- cognee/cli/tui/app.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cognee/cli/tui/app.py b/cognee/cli/tui/app.py index 2915e13e1..0e690ebc0 100644 --- a/cognee/cli/tui/app.py +++ b/cognee/cli/tui/app.py @@ -103,7 +103,7 @@ class HelpScreen(Screen): def compose(self) -> ComposeResult: yield Header() with VerticalScroll(): - yield Static(self.help_text) + yield Markdown(self.help_text) yield Button("Close (Esc)", id="close", variant="primary") yield Footer() @@ -117,11 +117,10 @@ class HelpScreen(Screen): def run_tui(mouse: bool = True) -> None: - """Entry point to run the TUI application - - + """Entry point to run the TUI application. + Args: mouse: Enable mouse support (default: True) -""" + """ app = CogneeTUI() app.run(mouse=mouse)