11import datetime
22from _typeshed import Incomplete
3+ from collections .abc import Iterable , Mapping
34from typing import Literal , NamedTuple , TypedDict , overload
45from typing_extensions import NotRequired
56
@@ -152,7 +153,7 @@ class ContainerCollection(Collection[Container]):
152153 entrypoint : str | list [str ] | None = None ,
153154 environment : dict [str , str ] | list [str ] | None = None ,
154155 extra_hosts : dict [str , str ] | None = None ,
155- group_add : list [str | int ] | None = None ,
156+ group_add : Iterable [str | int ] | None = None ,
156157 healthcheck : dict [Incomplete , Incomplete ] | None = None ,
157158 hostname : str | None = None ,
158159 init : bool | None = None ,
@@ -161,7 +162,7 @@ class ContainerCollection(Collection[Container]):
161162 isolation : str | None = None ,
162163 kernel_memory : str | int | None = None ,
163164 labels : dict [str , str ] | list [str ] | None = None ,
164- links : dict [str , str | None ] | None = None ,
165+ links : dict [str , str ] | dict [ str , None ] | dict [ str , str | None ] | Iterable [ tuple [ str , str | None ] ] | None = None ,
165166 log_config : LogConfig | None = None ,
166167 lxc_conf : dict [Incomplete , Incomplete ] | None = None ,
167168 mac_address : str | None = None ,
@@ -181,7 +182,7 @@ class ContainerCollection(Collection[Container]):
181182 pid_mode : str | None = None ,
182183 pids_limit : int | None = None ,
183184 platform : str | None = None ,
184- ports : dict [str , int | list [int ] | tuple [str , int ] | None ] | None = None ,
185+ ports : Mapping [str , int | list [int ] | tuple [str , int ] | None ] | None = None ,
185186 privileged : bool = False ,
186187 publish_all_ports : bool = False ,
187188 read_only : bool | None = None ,
@@ -247,7 +248,7 @@ class ContainerCollection(Collection[Container]):
247248 entrypoint : str | list [str ] | None = None ,
248249 environment : dict [str , str ] | list [str ] | None = None ,
249250 extra_hosts : dict [str , str ] | None = None ,
250- group_add : list [str | int ] | None = None ,
251+ group_add : Iterable [str | int ] | None = None ,
251252 healthcheck : dict [Incomplete , Incomplete ] | None = None ,
252253 hostname : str | None = None ,
253254 init : bool | None = None ,
@@ -256,7 +257,7 @@ class ContainerCollection(Collection[Container]):
256257 isolation : str | None = None ,
257258 kernel_memory : str | int | None = None ,
258259 labels : dict [str , str ] | list [str ] | None = None ,
259- links : dict [str , str | None ] | None = None ,
260+ links : dict [str , str ] | dict [ str , None ] | dict [ str , str | None ] | Iterable [ tuple [ str , str | None ] ] | None = None ,
260261 log_config : LogConfig | None = None ,
261262 lxc_conf : dict [Incomplete , Incomplete ] | None = None ,
262263 mac_address : str | None = None ,
@@ -276,7 +277,7 @@ class ContainerCollection(Collection[Container]):
276277 pid_mode : str | None = None ,
277278 pids_limit : int | None = None ,
278279 platform : str | None = None ,
279- ports : dict [str , int | list [int ] | tuple [str , int ] | None ] | None = None ,
280+ ports : Mapping [str , int | list [int ] | tuple [str , int ] | None ] | None = None ,
280281 privileged : bool = False ,
281282 publish_all_ports : bool = False ,
282283 read_only : bool | None = None ,
@@ -338,7 +339,7 @@ class ContainerCollection(Collection[Container]):
338339 entrypoint : str | list [str ] | None = None ,
339340 environment : dict [str , str ] | list [str ] | None = None ,
340341 extra_hosts : dict [str , str ] | None = None ,
341- group_add : list [str | int ] | None = None ,
342+ group_add : Iterable [str | int ] | None = None ,
342343 healthcheck : dict [Incomplete , Incomplete ] | None = None ,
343344 hostname : str | None = None ,
344345 init : bool | None = None ,
@@ -347,7 +348,7 @@ class ContainerCollection(Collection[Container]):
347348 isolation : str | None = None ,
348349 kernel_memory : str | int | None = None ,
349350 labels : dict [str , str ] | list [str ] | None = None ,
350- links : dict [str , str | None ] | None = None ,
351+ links : dict [str , str ] | dict [ str , None ] | dict [ str , str | None ] | Iterable [ tuple [ str , str | None ] ] | None = None ,
351352 log_config : LogConfig | None = None ,
352353 lxc_conf : dict [Incomplete , Incomplete ] | None = None ,
353354 mac_address : str | None = None ,
@@ -367,7 +368,7 @@ class ContainerCollection(Collection[Container]):
367368 pid_mode : str | None = None ,
368369 pids_limit : int | None = None ,
369370 platform : str | None = None ,
370- ports : dict [str , int | list [int ] | tuple [str , int ] | None ] | None = None ,
371+ ports : Mapping [str , int | list [int ] | tuple [str , int ] | None ] | None = None ,
371372 privileged : bool = False ,
372373 publish_all_ports : bool = False ,
373374 read_only : bool | None = None ,
0 commit comments