defs/compose/service: Use VolumeName type

main
Felix Stupp 2 years ago
parent 8258b00e6e
commit 1c918d2e80
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -2,6 +2,8 @@ from __future__ import annotations
from typing import Literal, NewType, Sequence, TypeAlias, TypedDict
from .volume import VolumeName
ServiceName = NewType("ServiceName", str)
ContainerName = NewType("ContainerName", str)
@ -33,7 +35,7 @@ class _VolumeNaturalConfig(TypedDict, total=False):
class _VolumeNaturalRequired(TypedDict, total=True):
type: Literal["volume"]
source: str
source: VolumeName
target: str

Loading…
Cancel
Save