1- from _typeshed import Incomplete
21from collections .abc import Iterable , Mapping
32from typing import Any , Final , Literal
43
@@ -20,61 +19,61 @@ class LogConfigTypesEnum:
2019
2120class LogConfig (DictType ):
2221 types : type [LogConfigTypesEnum ]
23- def __init__ (self , ** kwargs ) -> None : ...
22+ def __init__ (self , ** kwargs : Any ) -> None : ...
2423 @property
25- def type (self ): ...
24+ def type (self ) -> str : ...
2625 @type .setter
27- def type (self , value ) -> None : ...
26+ def type (self , value : str ) -> None : ...
2827 @property
29- def config (self ): ...
30- def set_config_value (self , key , value ) -> None : ...
31- def unset_config (self , key ) -> None : ...
28+ def config (self ) -> dict [ str , str ] : ...
29+ def set_config_value (self , key : str , value : str ) -> None : ...
30+ def unset_config (self , key : str ) -> None : ...
3231
3332class Ulimit (DictType ):
34- def __init__ (self , ** kwargs ) -> None : ...
33+ def __init__ (self , ** kwargs : Any ) -> None : ...
3534 @property
36- def name (self ): ...
35+ def name (self ) -> str : ...
3736 @name .setter
38- def name (self , value ) -> None : ...
37+ def name (self , value : str ) -> None : ...
3938 @property
40- def soft (self ): ...
39+ def soft (self ) -> int | None : ...
4140 @soft .setter
42- def soft (self , value ) -> None : ...
41+ def soft (self , value : int | None ) -> None : ...
4342 @property
44- def hard (self ): ...
43+ def hard (self ) -> int | None : ...
4544 @hard .setter
46- def hard (self , value ) -> None : ...
45+ def hard (self , value : int | None ) -> None : ...
4746
4847class DeviceRequest (DictType ):
49- def __init__ (self , ** kwargs ) -> None : ...
48+ def __init__ (self , ** kwargs : Any ) -> None : ...
5049 @property
51- def driver (self ): ...
50+ def driver (self ) -> str : ...
5251 @driver .setter
53- def driver (self , value ) -> None : ...
52+ def driver (self , value : str ) -> None : ...
5453 @property
55- def count (self ): ...
54+ def count (self ) -> int : ...
5655 @count .setter
57- def count (self , value ) -> None : ...
56+ def count (self , value : int ) -> None : ...
5857 @property
59- def device_ids (self ): ...
58+ def device_ids (self ) -> list [ str ] : ...
6059 @device_ids .setter
61- def device_ids (self , value ) -> None : ...
60+ def device_ids (self , value : list [ str ] ) -> None : ...
6261 @property
63- def capabilities (self ): ...
62+ def capabilities (self ) -> list [ list [ str ]] : ...
6463 @capabilities .setter
65- def capabilities (self , value ) -> None : ...
64+ def capabilities (self , value : list [ list [ str ]] ) -> None : ...
6665 @property
67- def options (self ): ...
66+ def options (self ) -> dict [ str , str ] : ...
6867 @options .setter
69- def options (self , value ) -> None : ...
68+ def options (self , value : dict [ str , str ] ) -> None : ...
7069
71- class HostConfig (dict [str , Incomplete ]):
70+ class HostConfig (dict [str , Any ]):
7271 def __init__ (
7372 self ,
7473 version : str ,
7574 binds : dict [str , Mapping [str , str ]] | list [str ] | None = None ,
76- port_bindings : Mapping [int | str , Incomplete ] | None = None ,
77- lxc_conf : dict [str , Incomplete ] | list [dict [str , Incomplete ]] | None = None ,
75+ port_bindings : Mapping [int | str , Any ] | None = None ,
76+ lxc_conf : dict [str , str ] | list [dict [str , str ]] | None = None ,
7877 publish_all_ports : bool = False ,
7978 links : dict [str , str ] | dict [str , None ] | dict [str , str | None ] | Iterable [tuple [str , str | None ]] | None = None ,
8079 privileged : bool = False ,
@@ -86,7 +85,7 @@ class HostConfig(dict[str, Incomplete]):
8685 cap_add : list [str ] | None = None ,
8786 cap_drop : list [str ] | None = None ,
8887 devices : list [str ] | None = None ,
89- extra_hosts : dict [str , Incomplete ] | list [Incomplete ] | None = None ,
88+ extra_hosts : dict [str , str ] | list [str ] | None = None ,
9089 read_only : bool | None = None ,
9190 pid_mode : str | None = None ,
9291 ipc_mode : str | None = None ,
@@ -113,15 +112,15 @@ class HostConfig(dict[str, Incomplete]):
113112 sysctls : dict [str , str ] | None = None ,
114113 tmpfs : dict [str , str ] | None = None ,
115114 oom_score_adj : int | None = None ,
116- dns_opt : list [Incomplete ] | None = None ,
115+ dns_opt : list [str ] | None = None ,
117116 cpu_shares : int | None = None ,
118117 cpuset_cpus : str | None = None ,
119118 userns_mode : str | None = None ,
120119 uts_mode : str | None = None ,
121120 pids_limit : int | None = None ,
122121 isolation : str | None = None ,
123122 auto_remove : bool = False ,
124- storage_opt : dict [Incomplete , Incomplete ] | None = None ,
123+ storage_opt : dict [str , str ] | None = None ,
125124 init : bool | None = None ,
126125 init_path : str | None = None ,
127126 volume_driver : str | None = None ,
@@ -133,7 +132,7 @@ class HostConfig(dict[str, Incomplete]):
133132 mounts : list [Mount ] | None = None ,
134133 cpu_rt_period : int | None = None ,
135134 cpu_rt_runtime : int | None = None ,
136- device_cgroup_rules : list [Incomplete ] | None = None ,
135+ device_cgroup_rules : list [str ] | None = None ,
137136 device_requests : list [DeviceRequest ] | None = None ,
138137 cgroupns : Literal ["private" , "host" ] | None = None ,
139138 ) -> None : ...
@@ -143,7 +142,7 @@ def host_config_version_error(param: str, version: str, less_than: bool = True)
143142def host_config_value_error (param : str , param_value : object ) -> ValueError : ...
144143def host_config_incompatible_error (param : str , param_value : str , incompatible_param : str ) -> errors .InvalidArgument : ...
145144
146- class ContainerConfig (dict [str , Incomplete ]):
145+ class ContainerConfig (dict [str , Any ]):
147146 def __init__ (
148147 self ,
149148 version : str ,
@@ -156,7 +155,7 @@ class ContainerConfig(dict[str, Incomplete]):
156155 tty : bool = False ,
157156 # list is invariant, enumerating all possible union combination would be too complex for:
158157 # list[str | int | tuple[int | str, str] | tuple[int | str, ...]]
159- ports : dict [str , dict [Incomplete , Incomplete ]] | list [Any ] | None = None ,
158+ ports : dict [str , dict [str , str ]] | list [Any ] | None = None ,
160159 environment : dict [str , str ] | list [str ] | None = None ,
161160 volumes : str | list [str ] | None = None ,
162161 network_disabled : bool = False ,
0 commit comments