From f3642df564cc6b4dca55d976e10da6064f428240 Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Tue, 24 Mar 2026 18:20:39 +0800 Subject: [PATCH] fix: annotate result dict as dict[str, Any] for last_activity None --- astrbot/_internal/stars/runtime_status_star.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/_internal/stars/runtime_status_star.py b/astrbot/_internal/stars/runtime_status_star.py index 642849719..f4af62fa4 100644 --- a/astrbot/_internal/stars/runtime_status_star.py +++ b/astrbot/_internal/stars/runtime_status_star.py @@ -112,7 +112,7 @@ class RuntimeStatusStar: def _get_stats(self) -> dict[str, Any]: """Get message counts and metrics.""" - result = { + result: dict[str, Any] = { "uptime_seconds": time.time() - self._start_time, } if self._orchestrator: