modal 0.74.56__py3-none-any.whl → 0.74.58__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- modal/_clustered_functions.pyi +2 -2
- modal/_functions.py +3 -2
- modal/_partial_function.py +3 -2
- modal/_resources.py +2 -0
- modal/_runtime/container_io_manager.pyi +46 -40
- modal/_runtime/execution_context.pyi +2 -2
- modal/_tunnel.pyi +2 -2
- modal/app.py +3 -0
- modal/app.pyi +12 -4
- modal/client.pyi +16 -16
- modal/cls.pyi +10 -6
- modal/container_process.pyi +6 -6
- modal/dict.pyi +32 -28
- modal/environments.pyi +10 -8
- modal/file_io.pyi +36 -32
- modal/functions.pyi +67 -51
- modal/image.pyi +4 -4
- modal/io_streams.pyi +12 -12
- modal/mount.pyi +6 -4
- modal/network_file_system.pyi +20 -8
- modal/object.pyi +6 -4
- modal/parallel_map.pyi +6 -6
- modal/queue.pyi +36 -14
- modal/runner.pyi +8 -4
- modal/sandbox.pyi +40 -30
- modal/secret.pyi +4 -0
- modal/serving.pyi +2 -0
- modal/snapshot.pyi +2 -2
- modal/token_flow.pyi +4 -4
- modal/volume.py +22 -5
- modal/volume.pyi +38 -30
- {modal-0.74.56.dist-info → modal-0.74.58.dist-info}/METADATA +1 -1
- {modal-0.74.56.dist-info → modal-0.74.58.dist-info}/RECORD +38 -38
- modal_version/_version_generated.py +1 -1
- {modal-0.74.56.dist-info → modal-0.74.58.dist-info}/WHEEL +0 -0
- {modal-0.74.56.dist-info → modal-0.74.58.dist-info}/entry_points.txt +0 -0
- {modal-0.74.56.dist-info → modal-0.74.58.dist-info}/licenses/LICENSE +0 -0
- {modal-0.74.56.dist-info → modal-0.74.58.dist-info}/top_level.txt +0 -0
modal/image.pyi
CHANGED
@@ -409,8 +409,8 @@ class Image(modal.object.Object):
|
|
409
409
|
) -> Image: ...
|
410
410
|
|
411
411
|
class __from_id_spec(typing_extensions.Protocol):
|
412
|
-
def __call__(self, image_id: str, client: typing.Optional[modal.client.Client] = None) -> Image: ...
|
413
|
-
async def aio(self, image_id: str, client: typing.Optional[modal.client.Client] = None) -> Image: ...
|
412
|
+
def __call__(self, /, image_id: str, client: typing.Optional[modal.client.Client] = None) -> Image: ...
|
413
|
+
async def aio(self, /, image_id: str, client: typing.Optional[modal.client.Client] = None) -> Image: ...
|
414
414
|
|
415
415
|
from_id: __from_id_spec
|
416
416
|
|
@@ -603,8 +603,8 @@ class Image(modal.object.Object):
|
|
603
603
|
def imports(self): ...
|
604
604
|
|
605
605
|
class ___logs_spec(typing_extensions.Protocol[SUPERSELF]):
|
606
|
-
def __call__(self) -> typing.Generator[str, None, None]: ...
|
607
|
-
def aio(self) -> typing.AsyncGenerator[str, None]: ...
|
606
|
+
def __call__(self, /) -> typing.Generator[str, None, None]: ...
|
607
|
+
def aio(self, /) -> typing.AsyncGenerator[str, None]: ...
|
608
608
|
|
609
609
|
_logs: ___logs_spec[typing_extensions.Self]
|
610
610
|
|
modal/io_streams.pyi
CHANGED
@@ -69,36 +69,36 @@ class StreamReader(typing.Generic[T]):
|
|
69
69
|
def file_descriptor(self) -> int: ...
|
70
70
|
|
71
71
|
class __read_spec(typing_extensions.Protocol[T_INNER, SUPERSELF]):
|
72
|
-
def __call__(self) -> T_INNER: ...
|
73
|
-
async def aio(self) -> T_INNER: ...
|
72
|
+
def __call__(self, /) -> T_INNER: ...
|
73
|
+
async def aio(self, /) -> T_INNER: ...
|
74
74
|
|
75
75
|
read: __read_spec[T, typing_extensions.Self]
|
76
76
|
|
77
77
|
class ___consume_container_process_stream_spec(typing_extensions.Protocol[SUPERSELF]):
|
78
|
-
def __call__(self): ...
|
79
|
-
async def aio(self): ...
|
78
|
+
def __call__(self, /): ...
|
79
|
+
async def aio(self, /): ...
|
80
80
|
|
81
81
|
_consume_container_process_stream: ___consume_container_process_stream_spec[typing_extensions.Self]
|
82
82
|
|
83
83
|
class ___stream_container_process_spec(typing_extensions.Protocol[SUPERSELF]):
|
84
|
-
def __call__(self) -> typing.Generator[tuple[typing.Optional[bytes], str], None, None]: ...
|
85
|
-
def aio(self) -> collections.abc.AsyncGenerator[tuple[typing.Optional[bytes], str], None]: ...
|
84
|
+
def __call__(self, /) -> typing.Generator[tuple[typing.Optional[bytes], str], None, None]: ...
|
85
|
+
def aio(self, /) -> collections.abc.AsyncGenerator[tuple[typing.Optional[bytes], str], None]: ...
|
86
86
|
|
87
87
|
_stream_container_process: ___stream_container_process_spec[typing_extensions.Self]
|
88
88
|
|
89
89
|
class ___get_logs_spec(typing_extensions.Protocol[SUPERSELF]):
|
90
90
|
def __call__(
|
91
|
-
self, skip_empty_messages: bool = True
|
91
|
+
self, /, skip_empty_messages: bool = True
|
92
92
|
) -> typing.Generator[typing.Optional[bytes], None, None]: ...
|
93
93
|
def aio(
|
94
|
-
self, skip_empty_messages: bool = True
|
94
|
+
self, /, skip_empty_messages: bool = True
|
95
95
|
) -> collections.abc.AsyncGenerator[typing.Optional[bytes], None]: ...
|
96
96
|
|
97
97
|
_get_logs: ___get_logs_spec[typing_extensions.Self]
|
98
98
|
|
99
99
|
class ___get_logs_by_line_spec(typing_extensions.Protocol[SUPERSELF]):
|
100
|
-
def __call__(self) -> typing.Generator[typing.Optional[bytes], None, None]: ...
|
101
|
-
def aio(self) -> collections.abc.AsyncGenerator[typing.Optional[bytes], None]: ...
|
100
|
+
def __call__(self, /) -> typing.Generator[typing.Optional[bytes], None, None]: ...
|
101
|
+
def aio(self, /) -> collections.abc.AsyncGenerator[typing.Optional[bytes], None]: ...
|
102
102
|
|
103
103
|
_get_logs_by_line: ___get_logs_by_line_spec[typing_extensions.Self]
|
104
104
|
|
@@ -118,7 +118,7 @@ class StreamWriter:
|
|
118
118
|
def write_eof(self) -> None: ...
|
119
119
|
|
120
120
|
class __drain_spec(typing_extensions.Protocol[SUPERSELF]):
|
121
|
-
def __call__(self) -> None: ...
|
122
|
-
async def aio(self) -> None: ...
|
121
|
+
def __call__(self, /) -> None: ...
|
122
|
+
async def aio(self, /) -> None: ...
|
123
123
|
|
124
124
|
drain: __drain_spec[typing_extensions.Self]
|
modal/mount.pyi
CHANGED
@@ -243,17 +243,17 @@ class Mount(modal.object.Object):
|
|
243
243
|
|
244
244
|
class ___get_files_spec(typing_extensions.Protocol):
|
245
245
|
def __call__(
|
246
|
-
self, entries: list[_MountEntry]
|
246
|
+
self, /, entries: list[_MountEntry]
|
247
247
|
) -> typing.Generator[modal._utils.blob_utils.FileUploadSpec, None, None]: ...
|
248
248
|
def aio(
|
249
|
-
self, entries: list[_MountEntry]
|
249
|
+
self, /, entries: list[_MountEntry]
|
250
250
|
) -> collections.abc.AsyncGenerator[modal._utils.blob_utils.FileUploadSpec, None]: ...
|
251
251
|
|
252
252
|
_get_files: ___get_files_spec
|
253
253
|
|
254
254
|
class ___load_mount_spec(typing_extensions.Protocol[SUPERSELF]):
|
255
|
-
def __call__(self, resolver: modal._resolver.Resolver, existing_object_id: typing.Optional[str]): ...
|
256
|
-
async def aio(self, resolver: modal._resolver.Resolver, existing_object_id: typing.Optional[str]): ...
|
255
|
+
def __call__(self, /, resolver: modal._resolver.Resolver, existing_object_id: typing.Optional[str]): ...
|
256
|
+
async def aio(self, /, resolver: modal._resolver.Resolver, existing_object_id: typing.Optional[str]): ...
|
257
257
|
|
258
258
|
_load_mount: ___load_mount_spec[typing_extensions.Self]
|
259
259
|
|
@@ -285,6 +285,7 @@ class Mount(modal.object.Object):
|
|
285
285
|
class ___deploy_spec(typing_extensions.Protocol[SUPERSELF]):
|
286
286
|
def __call__(
|
287
287
|
self,
|
288
|
+
/,
|
288
289
|
deployment_name: typing.Optional[str] = None,
|
289
290
|
namespace=1,
|
290
291
|
environment_name: typing.Optional[str] = None,
|
@@ -292,6 +293,7 @@ class Mount(modal.object.Object):
|
|
292
293
|
) -> None: ...
|
293
294
|
async def aio(
|
294
295
|
self,
|
296
|
+
/,
|
295
297
|
deployment_name: typing.Optional[str] = None,
|
296
298
|
namespace=1,
|
297
299
|
environment_name: typing.Optional[str] = None,
|
modal/network_file_system.pyi
CHANGED
@@ -86,6 +86,7 @@ class NetworkFileSystem(modal.object.Object):
|
|
86
86
|
class __lookup_spec(typing_extensions.Protocol):
|
87
87
|
def __call__(
|
88
88
|
self,
|
89
|
+
/,
|
89
90
|
name: str,
|
90
91
|
namespace=1,
|
91
92
|
client: typing.Optional[modal.client.Client] = None,
|
@@ -94,6 +95,7 @@ class NetworkFileSystem(modal.object.Object):
|
|
94
95
|
) -> NetworkFileSystem: ...
|
95
96
|
async def aio(
|
96
97
|
self,
|
98
|
+
/,
|
97
99
|
name: str,
|
98
100
|
namespace=1,
|
99
101
|
client: typing.Optional[modal.client.Client] = None,
|
@@ -106,6 +108,7 @@ class NetworkFileSystem(modal.object.Object):
|
|
106
108
|
class __create_deployed_spec(typing_extensions.Protocol):
|
107
109
|
def __call__(
|
108
110
|
self,
|
111
|
+
/,
|
109
112
|
deployment_name: str,
|
110
113
|
namespace=1,
|
111
114
|
client: typing.Optional[modal.client.Client] = None,
|
@@ -113,6 +116,7 @@ class NetworkFileSystem(modal.object.Object):
|
|
113
116
|
) -> str: ...
|
114
117
|
async def aio(
|
115
118
|
self,
|
119
|
+
/,
|
116
120
|
deployment_name: str,
|
117
121
|
namespace=1,
|
118
122
|
client: typing.Optional[modal.client.Client] = None,
|
@@ -124,12 +128,14 @@ class NetworkFileSystem(modal.object.Object):
|
|
124
128
|
class __delete_spec(typing_extensions.Protocol):
|
125
129
|
def __call__(
|
126
130
|
self,
|
131
|
+
/,
|
127
132
|
name: str,
|
128
133
|
client: typing.Optional[modal.client.Client] = None,
|
129
134
|
environment_name: typing.Optional[str] = None,
|
130
135
|
): ...
|
131
136
|
async def aio(
|
132
137
|
self,
|
138
|
+
/,
|
133
139
|
name: str,
|
134
140
|
client: typing.Optional[modal.client.Client] = None,
|
135
141
|
environment_name: typing.Optional[str] = None,
|
@@ -140,12 +146,14 @@ class NetworkFileSystem(modal.object.Object):
|
|
140
146
|
class __write_file_spec(typing_extensions.Protocol[SUPERSELF]):
|
141
147
|
def __call__(
|
142
148
|
self,
|
149
|
+
/,
|
143
150
|
remote_path: str,
|
144
151
|
fp: typing.BinaryIO,
|
145
152
|
progress_cb: typing.Optional[collections.abc.Callable[..., typing.Any]] = None,
|
146
153
|
) -> int: ...
|
147
154
|
async def aio(
|
148
155
|
self,
|
156
|
+
/,
|
149
157
|
remote_path: str,
|
150
158
|
fp: typing.BinaryIO,
|
151
159
|
progress_cb: typing.Optional[collections.abc.Callable[..., typing.Any]] = None,
|
@@ -154,26 +162,28 @@ class NetworkFileSystem(modal.object.Object):
|
|
154
162
|
write_file: __write_file_spec[typing_extensions.Self]
|
155
163
|
|
156
164
|
class __read_file_spec(typing_extensions.Protocol[SUPERSELF]):
|
157
|
-
def __call__(self, path: str) -> typing.Iterator[bytes]: ...
|
158
|
-
def aio(self, path: str) -> collections.abc.AsyncIterator[bytes]: ...
|
165
|
+
def __call__(self, /, path: str) -> typing.Iterator[bytes]: ...
|
166
|
+
def aio(self, /, path: str) -> collections.abc.AsyncIterator[bytes]: ...
|
159
167
|
|
160
168
|
read_file: __read_file_spec[typing_extensions.Self]
|
161
169
|
|
162
170
|
class __iterdir_spec(typing_extensions.Protocol[SUPERSELF]):
|
163
|
-
def __call__(self, path: str) -> typing.Iterator[modal.volume.FileEntry]: ...
|
164
|
-
def aio(self, path: str) -> collections.abc.AsyncIterator[modal.volume.FileEntry]: ...
|
171
|
+
def __call__(self, /, path: str) -> typing.Iterator[modal.volume.FileEntry]: ...
|
172
|
+
def aio(self, /, path: str) -> collections.abc.AsyncIterator[modal.volume.FileEntry]: ...
|
165
173
|
|
166
174
|
iterdir: __iterdir_spec[typing_extensions.Self]
|
167
175
|
|
168
176
|
class __add_local_file_spec(typing_extensions.Protocol[SUPERSELF]):
|
169
177
|
def __call__(
|
170
178
|
self,
|
179
|
+
/,
|
171
180
|
local_path: typing.Union[pathlib.Path, str],
|
172
181
|
remote_path: typing.Union[str, pathlib.PurePosixPath, None] = None,
|
173
182
|
progress_cb: typing.Optional[collections.abc.Callable[..., typing.Any]] = None,
|
174
183
|
): ...
|
175
184
|
async def aio(
|
176
185
|
self,
|
186
|
+
/,
|
177
187
|
local_path: typing.Union[pathlib.Path, str],
|
178
188
|
remote_path: typing.Union[str, pathlib.PurePosixPath, None] = None,
|
179
189
|
progress_cb: typing.Optional[collections.abc.Callable[..., typing.Any]] = None,
|
@@ -184,12 +194,14 @@ class NetworkFileSystem(modal.object.Object):
|
|
184
194
|
class __add_local_dir_spec(typing_extensions.Protocol[SUPERSELF]):
|
185
195
|
def __call__(
|
186
196
|
self,
|
197
|
+
/,
|
187
198
|
local_path: typing.Union[pathlib.Path, str],
|
188
199
|
remote_path: typing.Union[str, pathlib.PurePosixPath, None] = None,
|
189
200
|
progress_cb: typing.Optional[collections.abc.Callable[..., typing.Any]] = None,
|
190
201
|
): ...
|
191
202
|
async def aio(
|
192
203
|
self,
|
204
|
+
/,
|
193
205
|
local_path: typing.Union[pathlib.Path, str],
|
194
206
|
remote_path: typing.Union[str, pathlib.PurePosixPath, None] = None,
|
195
207
|
progress_cb: typing.Optional[collections.abc.Callable[..., typing.Any]] = None,
|
@@ -198,13 +210,13 @@ class NetworkFileSystem(modal.object.Object):
|
|
198
210
|
add_local_dir: __add_local_dir_spec[typing_extensions.Self]
|
199
211
|
|
200
212
|
class __listdir_spec(typing_extensions.Protocol[SUPERSELF]):
|
201
|
-
def __call__(self, path: str) -> list[modal.volume.FileEntry]: ...
|
202
|
-
async def aio(self, path: str) -> list[modal.volume.FileEntry]: ...
|
213
|
+
def __call__(self, /, path: str) -> list[modal.volume.FileEntry]: ...
|
214
|
+
async def aio(self, /, path: str) -> list[modal.volume.FileEntry]: ...
|
203
215
|
|
204
216
|
listdir: __listdir_spec[typing_extensions.Self]
|
205
217
|
|
206
218
|
class __remove_file_spec(typing_extensions.Protocol[SUPERSELF]):
|
207
|
-
def __call__(self, path: str, recursive=False): ...
|
208
|
-
async def aio(self, path: str, recursive=False): ...
|
219
|
+
def __call__(self, /, path: str, recursive=False): ...
|
220
|
+
async def aio(self, /, path: str, recursive=False): ...
|
209
221
|
|
210
222
|
remove_file: __remove_file_spec[typing_extensions.Self]
|
modal/object.pyi
CHANGED
@@ -39,6 +39,7 @@ class Object:
|
|
39
39
|
class ___init_spec(typing_extensions.Protocol[SUPERSELF]):
|
40
40
|
def __call__(
|
41
41
|
self,
|
42
|
+
/,
|
42
43
|
rep: str,
|
43
44
|
load: typing.Optional[
|
44
45
|
collections.abc.Callable[[SUPERSELF, modal._resolver.Resolver, typing.Optional[str]], None]
|
@@ -53,6 +54,7 @@ class Object:
|
|
53
54
|
): ...
|
54
55
|
def aio(
|
55
56
|
self,
|
57
|
+
/,
|
56
58
|
rep: str,
|
57
59
|
load: typing.Optional[
|
58
60
|
collections.abc.Callable[
|
@@ -123,13 +125,13 @@ class Object:
|
|
123
125
|
def deps(self) -> collections.abc.Callable[..., collections.abc.Sequence[Object]]: ...
|
124
126
|
|
125
127
|
class __resolve_spec(typing_extensions.Protocol[SUPERSELF]):
|
126
|
-
def __call__(self, client: typing.Optional[modal.client.Client] = None): ...
|
127
|
-
async def aio(self, client: typing.Optional[modal.client.Client] = None): ...
|
128
|
+
def __call__(self, /, client: typing.Optional[modal.client.Client] = None): ...
|
129
|
+
async def aio(self, /, client: typing.Optional[modal.client.Client] = None): ...
|
128
130
|
|
129
131
|
resolve: __resolve_spec[typing_extensions.Self]
|
130
132
|
|
131
133
|
class __hydrate_spec(typing_extensions.Protocol[SUPERSELF]):
|
132
|
-
def __call__(self, client: typing.Optional[modal.client.Client] = None) -> SUPERSELF: ...
|
133
|
-
async def aio(self, client: typing.Optional[modal.client.Client] = None) -> SUPERSELF: ...
|
134
|
+
def __call__(self, /, client: typing.Optional[modal.client.Client] = None) -> SUPERSELF: ...
|
135
|
+
async def aio(self, /, client: typing.Optional[modal.client.Client] = None) -> SUPERSELF: ...
|
134
136
|
|
135
137
|
hydrate: __hydrate_spec[typing_extensions.Self]
|
modal/parallel_map.pyi
CHANGED
@@ -22,20 +22,20 @@ class SynchronizedQueue:
|
|
22
22
|
def __init__(self, /, *args, **kwargs): ...
|
23
23
|
|
24
24
|
class __init_spec(typing_extensions.Protocol[SUPERSELF]):
|
25
|
-
def __call__(self): ...
|
26
|
-
async def aio(self): ...
|
25
|
+
def __call__(self, /): ...
|
26
|
+
async def aio(self, /): ...
|
27
27
|
|
28
28
|
init: __init_spec[typing_extensions.Self]
|
29
29
|
|
30
30
|
class __put_spec(typing_extensions.Protocol[SUPERSELF]):
|
31
|
-
def __call__(self, item): ...
|
32
|
-
async def aio(self, item): ...
|
31
|
+
def __call__(self, /, item): ...
|
32
|
+
async def aio(self, /, item): ...
|
33
33
|
|
34
34
|
put: __put_spec[typing_extensions.Self]
|
35
35
|
|
36
36
|
class __get_spec(typing_extensions.Protocol[SUPERSELF]):
|
37
|
-
def __call__(self): ...
|
38
|
-
async def aio(self): ...
|
37
|
+
def __call__(self, /): ...
|
38
|
+
async def aio(self, /): ...
|
39
39
|
|
40
40
|
get: __get_spec[typing_extensions.Self]
|
41
41
|
|
modal/queue.pyi
CHANGED
@@ -106,6 +106,7 @@ class Queue(modal.object.Object):
|
|
106
106
|
class __lookup_spec(typing_extensions.Protocol):
|
107
107
|
def __call__(
|
108
108
|
self,
|
109
|
+
/,
|
109
110
|
name: str,
|
110
111
|
namespace=1,
|
111
112
|
client: typing.Optional[modal.client.Client] = None,
|
@@ -114,6 +115,7 @@ class Queue(modal.object.Object):
|
|
114
115
|
) -> Queue: ...
|
115
116
|
async def aio(
|
116
117
|
self,
|
118
|
+
/,
|
117
119
|
name: str,
|
118
120
|
namespace=1,
|
119
121
|
client: typing.Optional[modal.client.Client] = None,
|
@@ -126,6 +128,7 @@ class Queue(modal.object.Object):
|
|
126
128
|
class __delete_spec(typing_extensions.Protocol):
|
127
129
|
def __call__(
|
128
130
|
self,
|
131
|
+
/,
|
129
132
|
name: str,
|
130
133
|
*,
|
131
134
|
client: typing.Optional[modal.client.Client] = None,
|
@@ -133,6 +136,7 @@ class Queue(modal.object.Object):
|
|
133
136
|
): ...
|
134
137
|
async def aio(
|
135
138
|
self,
|
139
|
+
/,
|
136
140
|
name: str,
|
137
141
|
*,
|
138
142
|
client: typing.Optional[modal.client.Client] = None,
|
@@ -142,33 +146,43 @@ class Queue(modal.object.Object):
|
|
142
146
|
delete: __delete_spec
|
143
147
|
|
144
148
|
class ___get_nonblocking_spec(typing_extensions.Protocol[SUPERSELF]):
|
145
|
-
def __call__(self, partition: typing.Optional[str], n_values: int) -> list[typing.Any]: ...
|
146
|
-
async def aio(self, partition: typing.Optional[str], n_values: int) -> list[typing.Any]: ...
|
149
|
+
def __call__(self, /, partition: typing.Optional[str], n_values: int) -> list[typing.Any]: ...
|
150
|
+
async def aio(self, /, partition: typing.Optional[str], n_values: int) -> list[typing.Any]: ...
|
147
151
|
|
148
152
|
_get_nonblocking: ___get_nonblocking_spec[typing_extensions.Self]
|
149
153
|
|
150
154
|
class ___get_blocking_spec(typing_extensions.Protocol[SUPERSELF]):
|
151
155
|
def __call__(
|
152
|
-
self, partition: typing.Optional[str], timeout: typing.Optional[float], n_values: int
|
156
|
+
self, /, partition: typing.Optional[str], timeout: typing.Optional[float], n_values: int
|
153
157
|
) -> list[typing.Any]: ...
|
154
158
|
async def aio(
|
155
|
-
self, partition: typing.Optional[str], timeout: typing.Optional[float], n_values: int
|
159
|
+
self, /, partition: typing.Optional[str], timeout: typing.Optional[float], n_values: int
|
156
160
|
) -> list[typing.Any]: ...
|
157
161
|
|
158
162
|
_get_blocking: ___get_blocking_spec[typing_extensions.Self]
|
159
163
|
|
160
164
|
class __clear_spec(typing_extensions.Protocol[SUPERSELF]):
|
161
|
-
def __call__(self, *, partition: typing.Optional[str] = None, all: bool = False) -> None: ...
|
162
|
-
async def aio(self, *, partition: typing.Optional[str] = None, all: bool = False) -> None: ...
|
165
|
+
def __call__(self, /, *, partition: typing.Optional[str] = None, all: bool = False) -> None: ...
|
166
|
+
async def aio(self, /, *, partition: typing.Optional[str] = None, all: bool = False) -> None: ...
|
163
167
|
|
164
168
|
clear: __clear_spec[typing_extensions.Self]
|
165
169
|
|
166
170
|
class __get_spec(typing_extensions.Protocol[SUPERSELF]):
|
167
171
|
def __call__(
|
168
|
-
self,
|
172
|
+
self,
|
173
|
+
/,
|
174
|
+
block: bool = True,
|
175
|
+
timeout: typing.Optional[float] = None,
|
176
|
+
*,
|
177
|
+
partition: typing.Optional[str] = None,
|
169
178
|
) -> typing.Optional[typing.Any]: ...
|
170
179
|
async def aio(
|
171
|
-
self,
|
180
|
+
self,
|
181
|
+
/,
|
182
|
+
block: bool = True,
|
183
|
+
timeout: typing.Optional[float] = None,
|
184
|
+
*,
|
185
|
+
partition: typing.Optional[str] = None,
|
172
186
|
) -> typing.Optional[typing.Any]: ...
|
173
187
|
|
174
188
|
get: __get_spec[typing_extensions.Self]
|
@@ -176,6 +190,7 @@ class Queue(modal.object.Object):
|
|
176
190
|
class __get_many_spec(typing_extensions.Protocol[SUPERSELF]):
|
177
191
|
def __call__(
|
178
192
|
self,
|
193
|
+
/,
|
179
194
|
n_values: int,
|
180
195
|
block: bool = True,
|
181
196
|
timeout: typing.Optional[float] = None,
|
@@ -184,6 +199,7 @@ class Queue(modal.object.Object):
|
|
184
199
|
) -> list[typing.Any]: ...
|
185
200
|
async def aio(
|
186
201
|
self,
|
202
|
+
/,
|
187
203
|
n_values: int,
|
188
204
|
block: bool = True,
|
189
205
|
timeout: typing.Optional[float] = None,
|
@@ -196,6 +212,7 @@ class Queue(modal.object.Object):
|
|
196
212
|
class __put_spec(typing_extensions.Protocol[SUPERSELF]):
|
197
213
|
def __call__(
|
198
214
|
self,
|
215
|
+
/,
|
199
216
|
v: typing.Any,
|
200
217
|
block: bool = True,
|
201
218
|
timeout: typing.Optional[float] = None,
|
@@ -205,6 +222,7 @@ class Queue(modal.object.Object):
|
|
205
222
|
) -> None: ...
|
206
223
|
async def aio(
|
207
224
|
self,
|
225
|
+
/,
|
208
226
|
v: typing.Any,
|
209
227
|
block: bool = True,
|
210
228
|
timeout: typing.Optional[float] = None,
|
@@ -218,6 +236,7 @@ class Queue(modal.object.Object):
|
|
218
236
|
class __put_many_spec(typing_extensions.Protocol[SUPERSELF]):
|
219
237
|
def __call__(
|
220
238
|
self,
|
239
|
+
/,
|
221
240
|
vs: list[typing.Any],
|
222
241
|
block: bool = True,
|
223
242
|
timeout: typing.Optional[float] = None,
|
@@ -227,6 +246,7 @@ class Queue(modal.object.Object):
|
|
227
246
|
) -> None: ...
|
228
247
|
async def aio(
|
229
248
|
self,
|
249
|
+
/,
|
230
250
|
vs: list[typing.Any],
|
231
251
|
block: bool = True,
|
232
252
|
timeout: typing.Optional[float] = None,
|
@@ -240,6 +260,7 @@ class Queue(modal.object.Object):
|
|
240
260
|
class ___put_many_blocking_spec(typing_extensions.Protocol[SUPERSELF]):
|
241
261
|
def __call__(
|
242
262
|
self,
|
263
|
+
/,
|
243
264
|
partition: typing.Optional[str],
|
244
265
|
partition_ttl: int,
|
245
266
|
vs: list[typing.Any],
|
@@ -247,6 +268,7 @@ class Queue(modal.object.Object):
|
|
247
268
|
): ...
|
248
269
|
async def aio(
|
249
270
|
self,
|
271
|
+
/,
|
250
272
|
partition: typing.Optional[str],
|
251
273
|
partition_ttl: int,
|
252
274
|
vs: list[typing.Any],
|
@@ -256,23 +278,23 @@ class Queue(modal.object.Object):
|
|
256
278
|
_put_many_blocking: ___put_many_blocking_spec[typing_extensions.Self]
|
257
279
|
|
258
280
|
class ___put_many_nonblocking_spec(typing_extensions.Protocol[SUPERSELF]):
|
259
|
-
def __call__(self, partition: typing.Optional[str], partition_ttl: int, vs: list[typing.Any]): ...
|
260
|
-
async def aio(self, partition: typing.Optional[str], partition_ttl: int, vs: list[typing.Any]): ...
|
281
|
+
def __call__(self, /, partition: typing.Optional[str], partition_ttl: int, vs: list[typing.Any]): ...
|
282
|
+
async def aio(self, /, partition: typing.Optional[str], partition_ttl: int, vs: list[typing.Any]): ...
|
261
283
|
|
262
284
|
_put_many_nonblocking: ___put_many_nonblocking_spec[typing_extensions.Self]
|
263
285
|
|
264
286
|
class __len_spec(typing_extensions.Protocol[SUPERSELF]):
|
265
|
-
def __call__(self, *, partition: typing.Optional[str] = None, total: bool = False) -> int: ...
|
266
|
-
async def aio(self, *, partition: typing.Optional[str] = None, total: bool = False) -> int: ...
|
287
|
+
def __call__(self, /, *, partition: typing.Optional[str] = None, total: bool = False) -> int: ...
|
288
|
+
async def aio(self, /, *, partition: typing.Optional[str] = None, total: bool = False) -> int: ...
|
267
289
|
|
268
290
|
len: __len_spec[typing_extensions.Self]
|
269
291
|
|
270
292
|
class __iterate_spec(typing_extensions.Protocol[SUPERSELF]):
|
271
293
|
def __call__(
|
272
|
-
self, *, partition: typing.Optional[str] = None, item_poll_timeout: float = 0.0
|
294
|
+
self, /, *, partition: typing.Optional[str] = None, item_poll_timeout: float = 0.0
|
273
295
|
) -> typing.Generator[typing.Any, None, None]: ...
|
274
296
|
def aio(
|
275
|
-
self, *, partition: typing.Optional[str] = None, item_poll_timeout: float = 0.0
|
297
|
+
self, /, *, partition: typing.Optional[str] = None, item_poll_timeout: float = 0.0
|
276
298
|
) -> collections.abc.AsyncGenerator[typing.Any, None]: ...
|
277
299
|
|
278
300
|
iterate: __iterate_spec[typing_extensions.Self]
|
modal/runner.pyi
CHANGED
@@ -89,6 +89,7 @@ def _deploy_stub(*args: typing.Any, **kwargs: typing.Any): ...
|
|
89
89
|
class __run_app_spec(typing_extensions.Protocol):
|
90
90
|
def __call__(
|
91
91
|
self,
|
92
|
+
/,
|
92
93
|
app: _App,
|
93
94
|
*,
|
94
95
|
client: typing.Optional[modal.client.Client] = None,
|
@@ -98,6 +99,7 @@ class __run_app_spec(typing_extensions.Protocol):
|
|
98
99
|
) -> synchronicity.combined_types.AsyncAndBlockingContextManager[_App]: ...
|
99
100
|
def aio(
|
100
101
|
self,
|
102
|
+
/,
|
101
103
|
app: _App,
|
102
104
|
*,
|
103
105
|
client: typing.Optional[modal.client.Client] = None,
|
@@ -110,10 +112,10 @@ run_app: __run_app_spec
|
|
110
112
|
|
111
113
|
class __serve_update_spec(typing_extensions.Protocol):
|
112
114
|
def __call__(
|
113
|
-
self, app: _App, existing_app_id: str, is_ready: multiprocessing.synchronize.Event, environment_name: str
|
115
|
+
self, /, app: _App, existing_app_id: str, is_ready: multiprocessing.synchronize.Event, environment_name: str
|
114
116
|
) -> None: ...
|
115
117
|
async def aio(
|
116
|
-
self, app: _App, existing_app_id: str, is_ready: multiprocessing.synchronize.Event, environment_name: str
|
118
|
+
self, /, app: _App, existing_app_id: str, is_ready: multiprocessing.synchronize.Event, environment_name: str
|
117
119
|
) -> None: ...
|
118
120
|
|
119
121
|
serve_update: __serve_update_spec
|
@@ -121,6 +123,7 @@ serve_update: __serve_update_spec
|
|
121
123
|
class __deploy_app_spec(typing_extensions.Protocol):
|
122
124
|
def __call__(
|
123
125
|
self,
|
126
|
+
/,
|
124
127
|
app: _App,
|
125
128
|
name: typing.Optional[str] = None,
|
126
129
|
namespace: typing.Any = 1,
|
@@ -130,6 +133,7 @@ class __deploy_app_spec(typing_extensions.Protocol):
|
|
130
133
|
) -> DeployResult: ...
|
131
134
|
async def aio(
|
132
135
|
self,
|
136
|
+
/,
|
133
137
|
app: _App,
|
134
138
|
name: typing.Optional[str] = None,
|
135
139
|
namespace: typing.Any = 1,
|
@@ -142,10 +146,10 @@ deploy_app: __deploy_app_spec
|
|
142
146
|
|
143
147
|
class __interactive_shell_spec(typing_extensions.Protocol):
|
144
148
|
def __call__(
|
145
|
-
self, _app: _App, cmds: list[str], environment_name: str = "", pty: bool = True, **kwargs: typing.Any
|
149
|
+
self, /, _app: _App, cmds: list[str], environment_name: str = "", pty: bool = True, **kwargs: typing.Any
|
146
150
|
) -> None: ...
|
147
151
|
async def aio(
|
148
|
-
self, _app: _App, cmds: list[str], environment_name: str = "", pty: bool = True, **kwargs: typing.Any
|
152
|
+
self, /, _app: _App, cmds: list[str], environment_name: str = "", pty: bool = True, **kwargs: typing.Any
|
149
153
|
) -> None: ...
|
150
154
|
|
151
155
|
interactive_shell: __interactive_shell_spec
|