mirror of
https://github.com/jmagar/unraid-mcp.git
synced 2026-03-01 16:04:24 -08:00
fix: add type annotation to resolve mypy Literal narrowing error
This commit is contained in:
@@ -289,7 +289,7 @@ def register_docker_tool(mcp: FastMCP) -> None:
|
|||||||
# Single-container mutations
|
# Single-container mutations
|
||||||
if action in MUTATIONS:
|
if action in MUTATIONS:
|
||||||
actual_id = await _resolve_container_id(container_id or "")
|
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(
|
data = await make_graphql_request(
|
||||||
MUTATIONS[action], {"id": actual_id},
|
MUTATIONS[action], {"id": actual_id},
|
||||||
operation_context=op_context,
|
operation_context=op_context,
|
||||||
|
|||||||
Reference in New Issue
Block a user