Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions compose2pod/graph.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Dependency graph: normalize depends_on, collect hostnames, compute startup order."""

import re
from typing import Any, cast
from typing import Any

from compose2pod.exceptions import UnsupportedComposeError
from compose2pod.values import has_variable, is_bool_like, validate_hosts_file_field
Expand Down Expand Up @@ -94,7 +94,7 @@ def _declared_depends_on(svc: dict[str, Any]) -> dict[str, str]:
if not isinstance(dep, str):
msg = f"depends_on entry {dep!r} must be a string"
raise UnsupportedComposeError(msg)
return cast(dict[str, str], dict.fromkeys(deps, "service_started"))
return dict.fromkeys(deps, "service_started")
if not isinstance(deps, dict):
msg = "'depends_on' must be a list or mapping"
raise UnsupportedComposeError(msg)
Expand Down
Loading