[docker-py] Fix 'volumes' argument type hint for 'run' and 'create' functions in containers.pyi (#12594)

This commit is contained in:
Károly Szabó
2024-08-26 16:20:02 +03:00
committed by GitHub
parent 7c1378cc25
commit 257691b5c5

View File

@@ -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: ...