[docker] load() accepts bytes streams (#14366)

This commit is contained in:
Takashi Ono
2025-07-04 19:39:02 +09:00
committed by GitHub
parent 2408c028f4
commit 741c70f4ba
+2 -1
View File
@@ -1,3 +1,4 @@
from _typeshed import SupportsRead
from collections.abc import Iterator
from io import StringIO
from typing import IO, Any, Literal, TypedDict, overload, type_check_only
@@ -73,7 +74,7 @@ class ImageCollection(Collection[Image]):
def get(self, name: str) -> Image: ...
def get_registry_data(self, name, auth_config: dict[str, Any] | None = None) -> RegistryData: ...
def list(self, name: str | None = None, all: bool = False, filters: dict[str, Any] | None = None) -> _ImageList: ...
def load(self, data: bytes) -> _ImageList: ...
def load(self, data: bytes | SupportsRead[bytes]) -> _ImageList: ...
@overload
def pull(
self,