Add some types to Docker ContainerCollection parameters (#11857)

This commit is contained in:
Adam Dangoor
2024-05-10 09:08:47 +01:00
committed by GitHub
parent 27cad856f8
commit 9174db0d7d

View File

@@ -57,10 +57,16 @@ class Container(Model):
class ContainerCollection(Collection[Container]):
model: type[Container]
def run(
self, image, command: Incomplete | None = None, stdout: bool = True, stderr: bool = False, remove: bool = False, **kwargs
self,
image: str,
command: str | list[str] | None = None,
stdout: bool = True,
stderr: bool = False,
remove: bool = False,
**kwargs,
): ...
def create(self, image, command: Incomplete | None = None, **kwargs): ... # type:ignore[override]
def get(self, container_id): ...
def create(self, image: str, command: str | list[str] | None = None, **kwargs): ... # type:ignore[override]
def get(self, container_id: str): ...
def list(
self,
all: bool = False,