mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
[docker] Update ports type annotation (#12284)
This commit is contained in:
committed by
GitHub
parent
9f2a9d8579
commit
6db5f35f4d
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user