Commit 230439b7 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Change docker.Volumes and proc.Environ to mutable types

parent 8a48b64d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ import logging
from collections.abc import Iterable
from collections.abc import Iterator
from collections.abc import MutableMapping
from collections.abc import MutableSequence
from contextlib import contextmanager
from enum import Enum
from os import PathLike
@@ -62,7 +63,7 @@ MountPath = Union[PathLike[bytes], PathLike[str]]
HostMount = tuple[MountPath, MountPath]
NamedMount = tuple[str, MountPath]
Mount = Union[HostMount, NamedMount, MountPath]
Volumes = Iterable[Mount]
Volumes = MutableSequence[Mount]

IPAddress = Union[ipaddress.IPv4Address, ipaddress.IPv6Address]

+1 −2
Original line number Diff line number Diff line
@@ -14,7 +14,6 @@ import io
import sys
from collections.abc import Callable
from collections.abc import Iterator
from collections.abc import Mapping
from collections.abc import MutableMapping
from collections.abc import MutableSequence
from collections.abc import Sequence
@@ -47,7 +46,7 @@ Argument = Union[str, bytes, PathLike[str], PathLike[bytes]]
PathArg = Argument  # deprecated
Arguments = Sequence[Argument]
MutableArguments = MutableSequence[Argument]
Environ = Mapping[str, str]
Environ = MutableMapping[str, str]


def coerce_args(args: Arguments) -> Iterator[str]: