From 17e1c186b5b8da4b59d8ff27014af827270f5847 Mon Sep 17 00:00:00 2001 From: Windpicker-owo <3431391539@qq.com> Date: Sat, 1 Nov 2025 15:25:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DMessageUpdateBatcher?= =?UTF-8?q?=E6=9C=AA=E5=AE=9A=E4=B9=89=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 使用字符串形式的前向引用'MessageUpdateBatcher' - 修复全局变量在类定义前使用类型注解的问题 --- src/chat/message_receive/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat/message_receive/storage.py b/src/chat/message_receive/storage.py index a41916866..0fcfce989 100644 --- a/src/chat/message_receive/storage.py +++ b/src/chat/message_receive/storage.py @@ -308,7 +308,7 @@ class MessageStorageBatcher: # 全局批处理器实例 _message_storage_batcher: Optional[MessageStorageBatcher] = None -_message_update_batcher: Optional[MessageUpdateBatcher] = None +_message_update_batcher: Optional["MessageUpdateBatcher"] = None def get_message_storage_batcher() -> MessageStorageBatcher: