mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
[docker] load() accepts bytes streams (#14366)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user