Skip to content

Commit 741c70f

Browse files
authored
[docker] load() accepts bytes streams (#14366)
1 parent 2408c02 commit 741c70f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

stubs/docker/docker/models/images.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from _typeshed import SupportsRead
12
from collections.abc import Iterator
23
from io import StringIO
34
from typing import IO, Any, Literal, TypedDict, overload, type_check_only
@@ -73,7 +74,7 @@ class ImageCollection(Collection[Image]):
7374
def get(self, name: str) -> Image: ...
7475
def get_registry_data(self, name, auth_config: dict[str, Any] | None = None) -> RegistryData: ...
7576
def list(self, name: str | None = None, all: bool = False, filters: dict[str, Any] | None = None) -> _ImageList: ...
76-
def load(self, data: bytes) -> _ImageList: ...
77+
def load(self, data: bytes | SupportsRead[bytes]) -> _ImageList: ...
7778
@overload
7879
def pull(
7980
self,

0 commit comments

Comments
 (0)