mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-01 16:20:13 +03:00
fix(typing): resolve mypy errors in agent.gns3_copilot.utils.parse_tool_content
This commit is contained in:
parent
5cb1b8e3d2
commit
4ae6b5338d
@ -214,9 +214,7 @@ def parse_tool_content(
|
|||||||
return content
|
return content
|
||||||
|
|
||||||
# Handle unsupported types
|
# Handle unsupported types
|
||||||
error_msg = ( # type: ignore[unreachable]
|
error_msg = f"Content must be str, dict, list, int, float, bool, or None, got {type(content).__name__}"
|
||||||
f"Content must be str, dict, list, int, float, bool, or None, got {type(content).__name__}"
|
|
||||||
)
|
|
||||||
logger.error(error_msg)
|
logger.error(error_msg)
|
||||||
|
|
||||||
if strict_mode:
|
if strict_mode:
|
||||||
|
|||||||
@ -312,7 +312,6 @@ module = [
|
|||||||
"gns3server.agent.gns3_copilot.tools_v2.packet_analysis_tool", # 1
|
"gns3server.agent.gns3_copilot.tools_v2.packet_analysis_tool", # 1
|
||||||
"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.custom_netmiko.scripts.list_netmiko_telnet_devices", # 1
|
"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.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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user