From eb9b01d04471117ab8cb47629667396cf4c67319 Mon Sep 17 00:00:00 2001 From: Jacob Magar Date: Sun, 8 Feb 2026 08:50:29 -0500 Subject: [PATCH] fix: add type annotation to resolve mypy Literal narrowing error --- unraid_mcp/tools/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unraid_mcp/tools/docker.py b/unraid_mcp/tools/docker.py index 63d6e7c..b44041e 100644 --- a/unraid_mcp/tools/docker.py +++ b/unraid_mcp/tools/docker.py @@ -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,