From f259f9d54c3dbd14f1ec23a1df99e8f2acd4fce2 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 17 Oct 2026 07:39:32 +0800 Subject: [PATCH] fix(types): annotate command initializer lifecycle --- app/startup/initializers/command.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/startup/initializers/command.py b/app/startup/initializers/command.py index 128e732c3..02b362024 100644 --- a/app/startup/initializers/command.py +++ b/app/startup/initializers/command.py @@ -1,4 +1,5 @@ from concurrent.futures import Future +from typing import Any from app.application.commands import register_command_class, reset_command_class from app.command import Command @@ -14,7 +15,7 @@ def reset_command_runtime() -> None: reset_command_class() -def init_command(): +def init_command() -> None: """ 初始化命令 """ @@ -26,7 +27,7 @@ def init_command(): raise -def restart_command() -> Future: +def restart_command() -> Future[Any]: """ 重建命令并返回完成信号。 """