Skip to content

Commit 304199a

Browse files
authored
fix: drop redundant cast flagged by ty 0.0.85 (#152)
1 parent 8abd590 commit 304199a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎compose2pod/graph.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Dependency graph: normalize depends_on, collect hostnames, compute startup order."""
22

33
import re
4-
from typing import Any, cast
4+
from typing import Any
55

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

0 commit comments

Comments
 (0)