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

This commit is contained in:
Mark Paronyan committed 2026-09-29 08:48:01 +03:00
1 parent 0c9f6aa9e3
commit c7c7e3b583
2 files changed
+1 -2

No files matched your search

@@ -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")