fix: type

This commit is contained in:
LIghtJUNction
2026-03-30 18:03:27 +08:00
parent 70107b2c8a
commit a550b88e15
57 changed files with 1353 additions and 387 deletions

View File

@@ -67,7 +67,7 @@ class PythonTool(FunctionTool):
description: str = f"Run codes in an IPython shell. Current OS: {_OS_NAME}."
parameters: dict = field(default_factory=lambda: param_schema)
async def call(
async def call( # type: ignore[invalid-method-override]
self, context: ContextWrapper[AstrAgentContext], code: str, silent: bool = False
) -> ToolExecResult:
if permission_error := check_admin_permission(context, "Python execution"):
@@ -93,7 +93,7 @@ class LocalPythonTool(FunctionTool):
parameters: dict = field(default_factory=lambda: param_schema)
async def call(
async def call( # type: ignore[invalid-method-override]
self, context: ContextWrapper[AstrAgentContext], code: str, silent: bool = False
) -> ToolExecResult:
if permission_error := check_admin_permission(context, "Python execution"):