mirror of
https://github.com/jmagar/unraid-mcp.git
synced 2026-11-09 14:57:56 -08:00
fix: add type annotation to resolve mypy Literal narrowing error
This commit is contained in:
1 parent
523b3edc76
commit
eb9b01d044
1 file changed
+1
-1
@@ -289,7 +289,7 @@ def register_docker_tool(mcp: FastMCP) -> None:
|
||||
# Single-container mutations
|
||||
if action in MUTATIONS:
|
||||
actual_id = await _resolve_container_id(container_id or "")
|
||||
op_context = {"operation": action} if action in ("start", "stop") else None
|
||||
op_context: dict[str, str] | None = {"operation": action} if action in ("start", "stop") else None
|
||||
data = await make_graphql_request(
|
||||
MUTATIONS[action], {"id": actual_id},
|
||||
operation_context=op_context,
|
||||
|
||||
Reference in new issue
Block a user