modal 0.74.57__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.
@@ -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, block: bool = True, timeout: typing.Optional[float] = None, *, partition: typing.Optional[str] = None
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, block: bool = True, timeout: typing.Optional[float] = None, *, partition: typing.Optional[str] = None
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
modal/sandbox.pyi CHANGED
@@ -208,6 +208,7 @@ class Sandbox(modal.object.Object):
208
208
  class __create_spec(typing_extensions.Protocol):
209
209
  def __call__(
210
210
  self,
211
+ /,
211
212
  *entrypoint_args: str,
212
213
  app: typing.Optional[modal.app.App] = None,
213
214
  environment_name: typing.Optional[str] = None,
@@ -240,6 +241,7 @@ class Sandbox(modal.object.Object):
240
241
  ) -> Sandbox: ...
241
242
  async def aio(
242
243
  self,
244
+ /,
243
245
  *entrypoint_args: str,
244
246
  app: typing.Optional[modal.app.App] = None,
245
247
  environment_name: typing.Optional[str] = None,
@@ -276,50 +278,50 @@ class Sandbox(modal.object.Object):
276
278
  def _hydrate_metadata(self, handle_metadata: typing.Optional[google.protobuf.message.Message]): ...
277
279
 
278
280
  class __from_id_spec(typing_extensions.Protocol):
279
- def __call__(self, sandbox_id: str, client: typing.Optional[modal.client.Client] = None) -> Sandbox: ...
280
- async def aio(self, sandbox_id: str, client: typing.Optional[modal.client.Client] = None) -> Sandbox: ...
281
+ def __call__(self, /, sandbox_id: str, client: typing.Optional[modal.client.Client] = None) -> Sandbox: ...
282
+ async def aio(self, /, sandbox_id: str, client: typing.Optional[modal.client.Client] = None) -> Sandbox: ...
281
283
 
282
284
  from_id: __from_id_spec
283
285
 
284
286
  class __set_tags_spec(typing_extensions.Protocol[SUPERSELF]):
285
- def __call__(self, tags: dict[str, str], *, client: typing.Optional[modal.client.Client] = None): ...
286
- async def aio(self, tags: dict[str, str], *, client: typing.Optional[modal.client.Client] = None): ...
287
+ def __call__(self, /, tags: dict[str, str], *, client: typing.Optional[modal.client.Client] = None): ...
288
+ async def aio(self, /, tags: dict[str, str], *, client: typing.Optional[modal.client.Client] = None): ...
287
289
 
288
290
  set_tags: __set_tags_spec[typing_extensions.Self]
289
291
 
290
292
  class __snapshot_filesystem_spec(typing_extensions.Protocol[SUPERSELF]):
291
- def __call__(self, timeout: int = 55) -> modal.image.Image: ...
292
- async def aio(self, timeout: int = 55) -> modal.image.Image: ...
293
+ def __call__(self, /, timeout: int = 55) -> modal.image.Image: ...
294
+ async def aio(self, /, timeout: int = 55) -> modal.image.Image: ...
293
295
 
294
296
  snapshot_filesystem: __snapshot_filesystem_spec[typing_extensions.Self]
295
297
 
296
298
  class __wait_spec(typing_extensions.Protocol[SUPERSELF]):
297
- def __call__(self, raise_on_termination: bool = True): ...
298
- async def aio(self, raise_on_termination: bool = True): ...
299
+ def __call__(self, /, raise_on_termination: bool = True): ...
300
+ async def aio(self, /, raise_on_termination: bool = True): ...
299
301
 
300
302
  wait: __wait_spec[typing_extensions.Self]
301
303
 
302
304
  class __tunnels_spec(typing_extensions.Protocol[SUPERSELF]):
303
- def __call__(self, timeout: int = 50) -> dict[int, modal._tunnel.Tunnel]: ...
304
- async def aio(self, timeout: int = 50) -> dict[int, modal._tunnel.Tunnel]: ...
305
+ def __call__(self, /, timeout: int = 50) -> dict[int, modal._tunnel.Tunnel]: ...
306
+ async def aio(self, /, timeout: int = 50) -> dict[int, modal._tunnel.Tunnel]: ...
305
307
 
306
308
  tunnels: __tunnels_spec[typing_extensions.Self]
307
309
 
308
310
  class __terminate_spec(typing_extensions.Protocol[SUPERSELF]):
309
- def __call__(self): ...
310
- async def aio(self): ...
311
+ def __call__(self, /): ...
312
+ async def aio(self, /): ...
311
313
 
312
314
  terminate: __terminate_spec[typing_extensions.Self]
313
315
 
314
316
  class __poll_spec(typing_extensions.Protocol[SUPERSELF]):
315
- def __call__(self) -> typing.Optional[int]: ...
316
- async def aio(self) -> typing.Optional[int]: ...
317
+ def __call__(self, /) -> typing.Optional[int]: ...
318
+ async def aio(self, /) -> typing.Optional[int]: ...
317
319
 
318
320
  poll: __poll_spec[typing_extensions.Self]
319
321
 
320
322
  class ___get_task_id_spec(typing_extensions.Protocol[SUPERSELF]):
321
- def __call__(self): ...
322
- async def aio(self): ...
323
+ def __call__(self, /): ...
324
+ async def aio(self, /): ...
323
325
 
324
326
  _get_task_id: ___get_task_id_spec[typing_extensions.Self]
325
327
 
@@ -327,6 +329,7 @@ class Sandbox(modal.object.Object):
327
329
  @typing.overload
328
330
  def __call__(
329
331
  self,
332
+ /,
330
333
  *cmds: str,
331
334
  pty_info: typing.Optional[modal_proto.api_pb2.PTYInfo] = None,
332
335
  stdout: modal.stream_type.StreamType = modal.stream_type.StreamType.PIPE,
@@ -341,6 +344,7 @@ class Sandbox(modal.object.Object):
341
344
  @typing.overload
342
345
  def __call__(
343
346
  self,
347
+ /,
344
348
  *cmds: str,
345
349
  pty_info: typing.Optional[modal_proto.api_pb2.PTYInfo] = None,
346
350
  stdout: modal.stream_type.StreamType = modal.stream_type.StreamType.PIPE,
@@ -355,6 +359,7 @@ class Sandbox(modal.object.Object):
355
359
  @typing.overload
356
360
  async def aio(
357
361
  self,
362
+ /,
358
363
  *cmds: str,
359
364
  pty_info: typing.Optional[modal_proto.api_pb2.PTYInfo] = None,
360
365
  stdout: modal.stream_type.StreamType = modal.stream_type.StreamType.PIPE,
@@ -369,6 +374,7 @@ class Sandbox(modal.object.Object):
369
374
  @typing.overload
370
375
  async def aio(
371
376
  self,
377
+ /,
372
378
  *cmds: str,
373
379
  pty_info: typing.Optional[modal_proto.api_pb2.PTYInfo] = None,
374
380
  stdout: modal.stream_type.StreamType = modal.stream_type.StreamType.PIPE,
@@ -384,54 +390,55 @@ class Sandbox(modal.object.Object):
384
390
  exec: __exec_spec[typing_extensions.Self]
385
391
 
386
392
  class ___experimental_snapshot_spec(typing_extensions.Protocol[SUPERSELF]):
387
- def __call__(self) -> modal.snapshot.SandboxSnapshot: ...
388
- async def aio(self) -> modal.snapshot.SandboxSnapshot: ...
393
+ def __call__(self, /) -> modal.snapshot.SandboxSnapshot: ...
394
+ async def aio(self, /) -> modal.snapshot.SandboxSnapshot: ...
389
395
 
390
396
  _experimental_snapshot: ___experimental_snapshot_spec[typing_extensions.Self]
391
397
 
392
398
  class ___experimental_from_snapshot_spec(typing_extensions.Protocol):
393
399
  def __call__(
394
- self, snapshot: modal.snapshot.SandboxSnapshot, client: typing.Optional[modal.client.Client] = None
400
+ self, /, snapshot: modal.snapshot.SandboxSnapshot, client: typing.Optional[modal.client.Client] = None
395
401
  ): ...
396
402
  async def aio(
397
- self, snapshot: modal.snapshot.SandboxSnapshot, client: typing.Optional[modal.client.Client] = None
403
+ self, /, snapshot: modal.snapshot.SandboxSnapshot, client: typing.Optional[modal.client.Client] = None
398
404
  ): ...
399
405
 
400
406
  _experimental_from_snapshot: ___experimental_from_snapshot_spec
401
407
 
402
408
  class __open_spec(typing_extensions.Protocol[SUPERSELF]):
403
409
  @typing.overload
404
- def __call__(self, path: str, mode: _typeshed.OpenTextMode) -> modal.file_io.FileIO[str]: ...
410
+ def __call__(self, /, path: str, mode: _typeshed.OpenTextMode) -> modal.file_io.FileIO[str]: ...
405
411
  @typing.overload
406
- def __call__(self, path: str, mode: _typeshed.OpenBinaryMode) -> modal.file_io.FileIO[bytes]: ...
412
+ def __call__(self, /, path: str, mode: _typeshed.OpenBinaryMode) -> modal.file_io.FileIO[bytes]: ...
407
413
  @typing.overload
408
- async def aio(self, path: str, mode: _typeshed.OpenTextMode) -> modal.file_io.FileIO[str]: ...
414
+ async def aio(self, /, path: str, mode: _typeshed.OpenTextMode) -> modal.file_io.FileIO[str]: ...
409
415
  @typing.overload
410
- async def aio(self, path: str, mode: _typeshed.OpenBinaryMode) -> modal.file_io.FileIO[bytes]: ...
416
+ async def aio(self, /, path: str, mode: _typeshed.OpenBinaryMode) -> modal.file_io.FileIO[bytes]: ...
411
417
 
412
418
  open: __open_spec[typing_extensions.Self]
413
419
 
414
420
  class __ls_spec(typing_extensions.Protocol[SUPERSELF]):
415
- def __call__(self, path: str) -> list[str]: ...
416
- async def aio(self, path: str) -> list[str]: ...
421
+ def __call__(self, /, path: str) -> list[str]: ...
422
+ async def aio(self, /, path: str) -> list[str]: ...
417
423
 
418
424
  ls: __ls_spec[typing_extensions.Self]
419
425
 
420
426
  class __mkdir_spec(typing_extensions.Protocol[SUPERSELF]):
421
- def __call__(self, path: str, parents: bool = False) -> None: ...
422
- async def aio(self, path: str, parents: bool = False) -> None: ...
427
+ def __call__(self, /, path: str, parents: bool = False) -> None: ...
428
+ async def aio(self, /, path: str, parents: bool = False) -> None: ...
423
429
 
424
430
  mkdir: __mkdir_spec[typing_extensions.Self]
425
431
 
426
432
  class __rm_spec(typing_extensions.Protocol[SUPERSELF]):
427
- def __call__(self, path: str, recursive: bool = False) -> None: ...
428
- async def aio(self, path: str, recursive: bool = False) -> None: ...
433
+ def __call__(self, /, path: str, recursive: bool = False) -> None: ...
434
+ async def aio(self, /, path: str, recursive: bool = False) -> None: ...
429
435
 
430
436
  rm: __rm_spec[typing_extensions.Self]
431
437
 
432
438
  class __watch_spec(typing_extensions.Protocol[SUPERSELF]):
433
439
  def __call__(
434
440
  self,
441
+ /,
435
442
  path: str,
436
443
  filter: typing.Optional[list[modal.file_io.FileWatchEventType]] = None,
437
444
  recursive: typing.Optional[bool] = None,
@@ -439,6 +446,7 @@ class Sandbox(modal.object.Object):
439
446
  ) -> typing.Iterator[modal.file_io.FileWatchEvent]: ...
440
447
  def aio(
441
448
  self,
449
+ /,
442
450
  path: str,
443
451
  filter: typing.Optional[list[modal.file_io.FileWatchEventType]] = None,
444
452
  recursive: typing.Optional[bool] = None,
@@ -459,6 +467,7 @@ class Sandbox(modal.object.Object):
459
467
  class __list_spec(typing_extensions.Protocol):
460
468
  def __call__(
461
469
  self,
470
+ /,
462
471
  *,
463
472
  app_id: typing.Optional[str] = None,
464
473
  tags: typing.Optional[dict[str, str]] = None,
@@ -466,6 +475,7 @@ class Sandbox(modal.object.Object):
466
475
  ) -> typing.Generator[Sandbox, None, None]: ...
467
476
  def aio(
468
477
  self,
478
+ /,
469
479
  *,
470
480
  app_id: typing.Optional[str] = None,
471
481
  tags: typing.Optional[dict[str, str]] = None,
modal/secret.pyi CHANGED
@@ -49,6 +49,7 @@ class Secret(modal.object.Object):
49
49
  class __lookup_spec(typing_extensions.Protocol):
50
50
  def __call__(
51
51
  self,
52
+ /,
52
53
  name: str,
53
54
  namespace=1,
54
55
  client: typing.Optional[modal.client.Client] = None,
@@ -57,6 +58,7 @@ class Secret(modal.object.Object):
57
58
  ) -> Secret: ...
58
59
  async def aio(
59
60
  self,
61
+ /,
60
62
  name: str,
61
63
  namespace=1,
62
64
  client: typing.Optional[modal.client.Client] = None,
@@ -69,6 +71,7 @@ class Secret(modal.object.Object):
69
71
  class __create_deployed_spec(typing_extensions.Protocol):
70
72
  def __call__(
71
73
  self,
74
+ /,
72
75
  deployment_name: str,
73
76
  env_dict: dict[str, str],
74
77
  namespace=1,
@@ -78,6 +81,7 @@ class Secret(modal.object.Object):
78
81
  ) -> str: ...
79
82
  async def aio(
80
83
  self,
84
+ /,
81
85
  deployment_name: str,
82
86
  env_dict: dict[str, str],
83
87
  namespace=1,
modal/serving.pyi CHANGED
@@ -38,6 +38,7 @@ def _serve_stub(*args, **kwargs): ...
38
38
  class __serve_app_spec(typing_extensions.Protocol):
39
39
  def __call__(
40
40
  self,
41
+ /,
41
42
  app: _App,
42
43
  import_ref: modal.cli.import_refs.ImportRef,
43
44
  *,
@@ -46,6 +47,7 @@ class __serve_app_spec(typing_extensions.Protocol):
46
47
  ) -> synchronicity.combined_types.AsyncAndBlockingContextManager[_App]: ...
47
48
  def aio(
48
49
  self,
50
+ /,
49
51
  app: _App,
50
52
  import_ref: modal.cli.import_refs.ImportRef,
51
53
  *,