mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
fix(typing): resolve mypy errors in agent
This commit is contained in:
2 files changed
+2
-3
No files matched your search
@@ -57,7 +57,7 @@ except ImportError as e:
|
||||
AI_COPILOT_AVAILABLE = False
|
||||
|
||||
# Provide stub functions that raise helpful errors
|
||||
async def get_project_agent_manager():
|
||||
async def get_project_agent_manager() -> "ProjectAgentManager":
|
||||
"""
|
||||
Get the global ProjectAgentManager singleton instance.
|
||||
|
||||
@@ -68,7 +68,7 @@ except ImportError as e:
|
||||
"AI Copilot is not available. Install AI dependencies with: pip install gns3-server[ai-features]"
|
||||
)
|
||||
|
||||
class ProjectAgentManager:
|
||||
class ProjectAgentManager: # type: ignore[no-redef]
|
||||
"""
|
||||
Stub class for ProjectAgentManager when AI dependencies are not installed.
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user