Skip to content

Commit 257691b

Browse files
authored
[docker-py] Fix 'volumes' argument type hint for 'run' and 'create' functions in containers.pyi (#12594)
1 parent 7c1378c commit 257691b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎stubs/docker/docker/models/containers.pyi‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class ContainerCollection(Collection[Container]):
203203
uts_mode: str | None = None,
204204
version: str | None = None,
205205
volume_driver: str | None = None,
206-
volumes: dict[str, str] | list[str] | None = None,
206+
volumes: dict[str, dict[str, str]] | list[str] | None = None,
207207
volumes_from: list[str] | None = None,
208208
working_dir: str | None = None,
209209
) -> bytes: ... # TODO: This should return a stream, if `stream` is True
@@ -298,7 +298,7 @@ class ContainerCollection(Collection[Container]):
298298
uts_mode: str | None = None,
299299
version: str | None = None,
300300
volume_driver: str | None = None,
301-
volumes: dict[str, str] | list[str] | None = None,
301+
volumes: dict[str, dict[str, str]] | list[str] | None = None,
302302
volumes_from: list[str] | None = None,
303303
working_dir: str | None = None,
304304
) -> Container: ...
@@ -389,7 +389,7 @@ class ContainerCollection(Collection[Container]):
389389
uts_mode: str | None = None,
390390
version: str | None = None,
391391
volume_driver: str | None = None,
392-
volumes: dict[str, str] | list[str] | None = None,
392+
volumes: dict[str, dict[str, str]] | list[str] | None = None,
393393
volumes_from: list[str] | None = None,
394394
working_dir: str | None = None,
395395
) -> Container: ...

0 commit comments

Comments
 (0)