[docker-py] Add return type for building a Docker image (#11851)

This commit is contained in:
Adam Dangoor
2024-05-02 09:08:32 +01:00
committed by GitHub
parent 2ac3ad9fcd
commit 5883898b0a

View File

@@ -1,4 +1,6 @@
from _typeshed import Incomplete
from collections.abc import Generator
from typing import Any
from .resource import Collection, Model
@@ -28,7 +30,7 @@ class RegistryData(Model):
class ImageCollection(Collection):
model: type[Image]
def build(self, **kwargs): ...
def build(self, **kwargs) -> tuple[Image, Generator[Any, None, None]]: ...
def get(self, name): ...
def get_registry_data(self, name, auth_config: Incomplete | None = None): ...
def list(self, name: Incomplete | None = None, all: bool = False, filters: Incomplete | None = None): ...