mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-17 08:35:03 +08:00
Add keyword argument types to docker.models.containers.Container.wait() (#12037)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user