11import datetime
2- from _typeshed import FileDescriptorOrPath , Incomplete , ReadableBuffer
2+ from _typeshed import FileDescriptorOrPath , ReadableBuffer
33from collections .abc import Iterable , Mapping
44from shlex import _ShlexInstream
5- from typing import Literal , NamedTuple , NoReturn , TypedDict , TypeVar , overload , type_check_only
5+ from typing import AnyStr , Literal , NamedTuple , NoReturn , TypedDict , TypeVar , overload , type_check_only
66from typing_extensions import deprecated
77
88from ..tls import TLSConfig
@@ -38,7 +38,7 @@ def convert_port_bindings(
3838@overload
3939def convert_volume_binds (binds : list [_T ]) -> list [_T ]: ...
4040@overload
41- def convert_volume_binds (binds : Mapping [str | bytes , Incomplete ]) -> list [str ]: ...
41+ def convert_volume_binds (binds : Mapping [str | bytes , bytes | str | dict [ str , bytes | str ] ]) -> list [str ]: ...
4242@overload
4343def convert_tmpfs_mounts (tmpfs : dict [_K , _V ]) -> dict [_K , _V ]: ...
4444@overload
@@ -56,8 +56,8 @@ def parse_host(
5656) -> Literal ["http+unix:///var/run/docker.sock" ]: ...
5757@overload
5858def parse_host (addr : str | None , is_win32 : bool = False , tls : bool = False ) -> str | bytes : ...
59- def parse_devices (devices : Iterable [str | dict [str , Incomplete ]]) -> list [dict [str , Incomplete ]]: ...
60- def kwargs_from_env (environment : Mapping [str , Incomplete ] | None = None ) -> _EnvKWArgs : ...
59+ def parse_devices (devices : Iterable [str | dict [str , str ]]) -> list [dict [str , str ]]: ...
60+ def kwargs_from_env (environment : Mapping [str , AnyStr ] | None = None ) -> _EnvKWArgs : ...
6161def convert_filters (filters ) -> str : ...
6262def datetime_to_timestamp (dt : datetime .datetime ) -> int : ...
6363def parse_bytes (s : float | str ) -> float : ...
0 commit comments