From 257691b5c5b1145031a89e9e007f969796325db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1roly=20Szab=C3=B3?= Date: Mon, 26 Aug 2024 16:20:02 +0300 Subject: [PATCH] [docker-py] Fix 'volumes' argument type hint for 'run' and 'create' functions in containers.pyi (#12594) --- stubs/docker/docker/models/containers.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stubs/docker/docker/models/containers.pyi b/stubs/docker/docker/models/containers.pyi index c62ade9a6..94a1d4129 100644 --- a/stubs/docker/docker/models/containers.pyi +++ b/stubs/docker/docker/models/containers.pyi @@ -203,7 +203,7 @@ class ContainerCollection(Collection[Container]): uts_mode: str | None = None, version: str | None = None, volume_driver: str | None = None, - volumes: dict[str, str] | list[str] | None = None, + volumes: dict[str, dict[str, str]] | list[str] | None = None, volumes_from: list[str] | None = None, working_dir: str | None = None, ) -> bytes: ... # TODO: This should return a stream, if `stream` is True @@ -298,7 +298,7 @@ class ContainerCollection(Collection[Container]): uts_mode: str | None = None, version: str | None = None, volume_driver: str | None = None, - volumes: dict[str, str] | list[str] | None = None, + volumes: dict[str, dict[str, str]] | list[str] | None = None, volumes_from: list[str] | None = None, working_dir: str | None = None, ) -> Container: ... @@ -389,7 +389,7 @@ class ContainerCollection(Collection[Container]): uts_mode: str | None = None, version: str | None = None, volume_driver: str | None = None, - volumes: dict[str, str] | list[str] | None = None, + volumes: dict[str, dict[str, str]] | list[str] | None = None, volumes_from: list[str] | None = None, working_dir: str | None = None, ) -> Container: ...