sync
This commit is contained in:
@@ -5,14 +5,14 @@ from typing import Self, cast, final
|
||||
|
||||
from docker_compose.cfg.compose_paths import ServicePath, VolumePath
|
||||
from docker_compose.cfg.org_yaml import OrgYaml
|
||||
from docker_compose.util.Ts import T_YamlDict, T_YamlRW
|
||||
from docker_compose.util.Ts import TypeYamlCompatableDict, TypeYamlCompatableRes
|
||||
from docker_compose.util.yaml_util import read_yaml, write_yaml
|
||||
|
||||
YAML_EXTS = frozenset((".yml", ".yaml"))
|
||||
|
||||
|
||||
class ComposeFileTemplate(Path):
|
||||
def write_dict(self, data: T_YamlDict) -> None:
|
||||
def write_dict(self, data: TypeYamlCompatableDict) -> None:
|
||||
write_yaml(data, self)
|
||||
|
||||
def write(self, data: str) -> None:
|
||||
@@ -68,7 +68,7 @@ class VolumesDir(YamlDir):
|
||||
|
||||
|
||||
class VolumeData(Path):
|
||||
def write(self, data: T_YamlRW) -> None:
|
||||
def write(self, data: TypeYamlCompatableRes) -> None:
|
||||
write_yaml(data, self)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user