fix(typing): resolve mypy errors in agent.gns3_copilot.utils.parse_tool_content

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

View File

@ -214,9 +214,7 @@ def parse_tool_content(
return content
# Handle unsupported types
error_msg = ( # type: ignore[unreachable]
f"Content must be str, dict, list, int, float, bool, or None, got {type(content).__name__}"
)
error_msg = f"Content must be str, dict, list, int, float, bool, or None, got {type(content).__name__}"
logger.error(error_msg)
if strict_mode:

View File

@ -312,7 +312,6 @@ module = [
"gns3server.agent.gns3_copilot.tools_v2.packet_analysis_tool", # 1
"gns3server.agent.gns3_copilot.tools_v2.vpcs_tools_netmiko", # 9
"gns3server.agent.gns3_copilot.utils.custom_netmiko.scripts.list_netmiko_telnet_devices", # 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.manage_wireshark", # 1