mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
[docker-py] Add return type for building a Docker image (#11851)
This commit is contained in:
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user