From f084fba702855887b6fae3ab4e5a9018bf1f0602 Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Mon, 30 Mar 2026 17:46:04 +0800 Subject: [PATCH] fix: add type ignore for func_tool assignment --- astrbot/core/astr_main_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/astr_main_agent.py b/astrbot/core/astr_main_agent.py index 3cd849194..53f0efee1 100644 --- a/astrbot/core/astr_main_agent.py +++ b/astrbot/core/astr_main_agent.py @@ -335,7 +335,7 @@ async def _ensure_persona_and_skills( if tool and tool.active: persona_toolset.add_tool(tool) # type: ignore[arg-type] if not req.func_tool: - req.func_tool = persona_toolset + req.func_tool = persona_toolset # type: ignore[assignment] else: req.func_tool.merge(persona_toolset)