diff --git a/stubs/docker/docker/models/containers.pyi b/stubs/docker/docker/models/containers.pyi index 34db3d06c..774b7ecf6 100644 --- a/stubs/docker/docker/models/containers.pyi +++ b/stubs/docker/docker/models/containers.pyi @@ -176,7 +176,7 @@ class ContainerCollection(Collection[Container]): pid_mode: str | None = None, pids_limit: int | None = None, platform: str | None = None, - ports: dict[str, int | None] | None = None, + ports: dict[str, int | list[int] | tuple[str, int] | None] | None = None, privileged: bool = False, publish_all_ports: bool = False, read_only: bool | None = None, @@ -271,7 +271,7 @@ class ContainerCollection(Collection[Container]): pid_mode: str | None = None, pids_limit: int | None = None, platform: str | None = None, - ports: dict[str, int | None] | None = None, + ports: dict[str, int | list[int] | tuple[str, int] | None] | None = None, privileged: bool = False, publish_all_ports: bool = False, read_only: bool | None = None, @@ -362,7 +362,7 @@ class ContainerCollection(Collection[Container]): pid_mode: str | None = None, pids_limit: int | None = None, platform: str | None = None, - ports: dict[str, int | None] | None = None, + ports: dict[str, int | list[int] | tuple[str, int] | None] | None = None, privileged: bool = False, publish_all_ports: bool = False, read_only: bool | None = None, diff --git a/stubs/docker/docker/types/containers.pyi b/stubs/docker/docker/types/containers.pyi index c6a627d40..bd9fffa38 100644 --- a/stubs/docker/docker/types/containers.pyi +++ b/stubs/docker/docker/types/containers.pyi @@ -150,7 +150,7 @@ class ContainerConfig(dict[str, Incomplete]): detach: bool = False, stdin_open: bool = False, tty: bool = False, - ports: dict[str, int | None] | None = None, + ports: dict[str, int | list[int] | tuple[str, int] | None] | None = None, environment: dict[str, str] | list[str] | None = None, volumes: str | list[str] | None = None, network_disabled: bool = False,