[docker] Update ports type annotation (#12284)

This commit is contained in:
Oguzhan Mete Ozturk
2024-07-10 04:57:27 -05:00
committed by GitHub
parent 9f2a9d8579
commit 6db5f35f4d
2 changed files with 4 additions and 4 deletions

View File

@@ -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,

View File

@@ -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,