mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
fix: add type ignore for func_tool assignment
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user