From 73c45f910688fd5af492a3ffa8f6e542ff2ccfe9 Mon Sep 17 00:00:00 2001 From: Daniil Svetlov Date: Tue, 31 Mar 2026 18:23:00 +0300 Subject: [PATCH] style: format list_chats with black Co-Authored-By: Claude Opus 4.6 (1M context) --- main.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index f1d663d..31d738f 100644 --- a/main.py +++ b/main.py @@ -1248,7 +1248,9 @@ async def list_topics( @mcp.tool(annotations=ToolAnnotations(title="List Chats", openWorldHint=True, readOnlyHint=True)) -async def list_chats(chat_type: str = None, limit: int = 20, unread_only: bool = False, unmuted_only: bool = False) -> str: +async def list_chats( + chat_type: str = None, limit: int = 20, unread_only: bool = False, unmuted_only: bool = False +) -> str: """ List available chats with metadata. @@ -1329,7 +1331,14 @@ async def list_chats(chat_type: str = None, limit: int = 20, unread_only: bool = return "\n".join(results) except Exception as e: - return log_and_format_error("list_chats", e, chat_type=chat_type, limit=limit, unread_only=unread_only, unmuted_only=unmuted_only) + return log_and_format_error( + "list_chats", + e, + chat_type=chat_type, + limit=limit, + unread_only=unread_only, + unmuted_only=unmuted_only, + ) @mcp.tool(annotations=ToolAnnotations(title="Get Chat", openWorldHint=True, readOnlyHint=True))