From ee86b68470390ae7c080a03aa597b29befd32006 Mon Sep 17 00:00:00 2001 From: anka <1350989414@qq.com> Date: Sat, 5 Apr 2025 01:15:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=BC=8F=E5=8A=A0classmethod=E4=BA=86!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/star/star_tools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/astrbot/core/star/star_tools.py b/astrbot/core/star/star_tools.py index 284423840..bc7ead53e 100644 --- a/astrbot/core/star/star_tools.py +++ b/astrbot/core/star/star_tools.py @@ -19,6 +19,7 @@ class StarTools: _context: ClassVar[Optional[Context]] = None + @classmethod def initialize(cls, context: Context) -> None: """ 初始化StarTools,设置context引用