From 6f3dc2e10b3edf7728dc2faa4a50c204072b06dd Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 17 Oct 2026 07:39:13 +0800 Subject: [PATCH] fix(types): annotate command lifecycle contracts --- app/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/command.py b/app/command.py index 217cdf195..9504711e3 100644 --- a/app/command.py +++ b/app/command.py @@ -48,7 +48,7 @@ class Command(metaclass=Singleton): 全局命令管理,消费事件 """ - def __init__(self): + def __init__(self) -> None: # 插件管理器 super().__init__() # 注册的命令集合 @@ -162,7 +162,7 @@ class Command(metaclass=Singleton): # 初始化命令 self.init_commands() - def init_commands(self, pid: Optional[str] = None) -> Future: + def init_commands(self, pid: Optional[str] = None) -> Future[Any]: """ 提交菜单命令重建任务,并返回可等待的完成信号。 """