Skip to content

Commit 5009692

Browse files
committed
fill in incomplete in docker/utils/utils.pyi
1 parent 26e2f94 commit 5009692

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

stubs/docker/docker/utils/utils.pyi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import datetime
2-
from _typeshed import FileDescriptorOrPath, Incomplete, ReadableBuffer
2+
from _typeshed import FileDescriptorOrPath, ReadableBuffer
33
from collections.abc import Iterable, Mapping
44
from 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
66
from typing_extensions import deprecated
77

88
from ..tls import TLSConfig
@@ -38,7 +38,7 @@ def convert_port_bindings(
3838
@overload
3939
def 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
4343
def 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
5858
def 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: ...
6161
def convert_filters(filters) -> str: ...
6262
def datetime_to_timestamp(dt: datetime.datetime) -> int: ...
6363
def parse_bytes(s: float | str) -> float: ...

0 commit comments

Comments
 (0)