Skip to content

Commit e3c8c34

Browse files
committed
use str instead of AnyStr
1 parent 423a90c commit e3c8c34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/docker/docker/utils/utils.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import datetime
22
from _typeshed import FileDescriptorOrPath, ReadableBuffer
33
from collections.abc import Iterable, Mapping
44
from shlex import _ShlexInstream
5-
from typing import AnyStr, Literal, NamedTuple, NoReturn, TypedDict, TypeVar, overload, type_check_only
5+
from typing import Literal, NamedTuple, NoReturn, TypedDict, TypeVar, overload, type_check_only
66
from typing_extensions import deprecated
77

88
from ..tls import TLSConfig
@@ -57,7 +57,7 @@ def parse_host(
5757
@overload
5858
def parse_host(addr: str | None, is_win32: bool = False, tls: bool = False) -> str | bytes: ...
5959
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: ...
60+
def kwargs_from_env(environment: Mapping[str, str] | 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)