fix(typing): resolve mypy errors in agent.gns3_copilot.skills.loader

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

View File

@ -248,7 +248,7 @@ class SkillsLoader:
continue
# Use device_type from YAML content as the key
# Fallback to filename stem if device_type not present
skill_key = skill_data.get("device_type") if isinstance(skill_data, dict) else None
skill_key = skill_data.get("device_type")
if not skill_key:
skill_key = yaml_file.stem
logger.warning(f"No device_type in {yaml_file}, using filename '{skill_key}' as key")

View File

@ -302,7 +302,6 @@ module = [
"gns3server.agent.gns3_copilot.gns3_client.api_handlers", # 10
"gns3server.agent.gns3_copilot.gns3_client.connector_factory", # 1
"gns3server.agent.gns3_copilot.gns3_client.project_inventory", # 2
"gns3server.agent.gns3_copilot.skills.loader", # 1
"gns3server.agent.gns3_copilot.skills.manager", # 4
"gns3server.agent.gns3_copilot.tools_v2.config_tools_nornir", # 6
"gns3server.agent.gns3_copilot.tools_v2.display_tools_nornir", # 6