fix(typing): resolve mypy errors in agent.mcp.appliances

This commit is contained in:
Mark Paronyan 2026-09-28 05:06:15 +00:00
parent 2d712e0a90
commit d25cb5cdca
No known key found for this signature in database
GPG Key ID: 8DC7338A87FE22F8
2 changed files with 1 additions and 2 deletions

View File

@ -108,7 +108,7 @@ def install_appliance_handler(params: dict[str, Any], gns3_ctx: dict[str, Any])
if version: if version:
request_params["version"] = version request_params["version"] = version
response = conn.http_call("post", url, params=request_params) response = conn.http_call("post", url, params=request_params)
result = {"message": f"Appliance {appliance_id} installed"} result: dict[str, Any] = {"message": f"Appliance {appliance_id} installed"}
if response.content: if response.content:
# the install endpoint returns the created template (201); tolerate an # the install endpoint returns the created template (201); tolerate an
# empty body in case an older server still replies with 204 # empty body in case an older server still replies with 204

View File

@ -313,7 +313,6 @@ module = [
"gns3server.agent.gns3_copilot.tools_v2.vpcs_tools_netmiko", # 9 "gns3server.agent.gns3_copilot.tools_v2.vpcs_tools_netmiko", # 9
"gns3server.agent.gns3_copilot.utils.message_converters", # 2 "gns3server.agent.gns3_copilot.utils.message_converters", # 2
"gns3server.agent.gns3_copilot.utils.parse_tool_content", # 1 "gns3server.agent.gns3_copilot.utils.parse_tool_content", # 1
"gns3server.agent.mcp.appliances", # 1
"gns3server.agent.web_wireshark.docker_client", # 5 "gns3server.agent.web_wireshark.docker_client", # 5
"gns3server.agent.web_wireshark.manage_wireshark", # 1 "gns3server.agent.web_wireshark.manage_wireshark", # 1
"gns3server.agent.web_wireshark.manager", # 9 "gns3server.agent.web_wireshark.manager", # 9