Add keyword argument types to docker.models.containers.Container.wait() (#12037)

This commit is contained in:
Adam Dangoor
2024-05-27 18:19:29 +01:00
committed by GitHub
parent 460c35bd6f
commit 41cc4f9ede

View File

@@ -1,5 +1,5 @@
from _typeshed import Incomplete
from typing import NamedTuple
from typing import Literal, NamedTuple
from docker.types.daemon import CancellableStream
@@ -57,7 +57,7 @@ class Container(Model):
def top(self, **kwargs): ...
def unpause(self): ...
def update(self, **kwargs): ...
def wait(self, **kwargs): ...
def wait(self, *, timeout: float | None = None, condition: Literal["not-running", "next-exit", "removed"] | None = None): ...
class ContainerCollection(Collection[Container]):
model: type[Container]