modal 0.73.109__py3-none-any.whl → 0.73.110__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/_partial_function.py +23 -13
- modal/client.pyi +2 -2
- {modal-0.73.109.dist-info → modal-0.73.110.dist-info}/METADATA +1 -1
- {modal-0.73.109.dist-info → modal-0.73.110.dist-info}/RECORD +9 -9
- modal_version/_version_generated.py +1 -1
- {modal-0.73.109.dist-info → modal-0.73.110.dist-info}/LICENSE +0 -0
- {modal-0.73.109.dist-info → modal-0.73.110.dist-info}/WHEEL +0 -0
- {modal-0.73.109.dist-info → modal-0.73.110.dist-info}/entry_points.txt +0 -0
- {modal-0.73.109.dist-info → modal-0.73.110.dist-info}/top_level.txt +0 -0
modal/_partial_function.py
CHANGED
@@ -210,7 +210,9 @@ def _method(
|
|
210
210
|
```
|
211
211
|
"""
|
212
212
|
if _warn_parentheses_missing is not None:
|
213
|
-
raise InvalidError(
|
213
|
+
raise InvalidError(
|
214
|
+
"Positional arguments are not allowed. Did you forget parentheses? Suggestion: `@modal.method()`."
|
215
|
+
)
|
214
216
|
|
215
217
|
def wrapper(raw_f: Callable[..., Any]) -> _PartialFunction:
|
216
218
|
nonlocal is_generator
|
@@ -267,10 +269,12 @@ def _fastapi_endpoint(
|
|
267
269
|
"""
|
268
270
|
if isinstance(_warn_parentheses_missing, str):
|
269
271
|
# Probably passing the method string as a positional argument.
|
270
|
-
raise InvalidError(
|
272
|
+
raise InvalidError(
|
273
|
+
f'Positional arguments are not allowed. Suggestion: `@modal.fastapi_endpoint(method="{method}")`.'
|
274
|
+
)
|
271
275
|
elif _warn_parentheses_missing is not None:
|
272
276
|
raise InvalidError(
|
273
|
-
"Positional arguments are not allowed. Did you forget parentheses? Suggestion: `@fastapi_endpoint()`."
|
277
|
+
"Positional arguments are not allowed. Did you forget parentheses? Suggestion: `@modal.fastapi_endpoint()`."
|
274
278
|
)
|
275
279
|
|
276
280
|
def wrapper(raw_f: Callable[..., Any]) -> _PartialFunction:
|
@@ -327,10 +331,10 @@ def _web_endpoint(
|
|
327
331
|
"""
|
328
332
|
if isinstance(_warn_parentheses_missing, str):
|
329
333
|
# Probably passing the method string as a positional argument.
|
330
|
-
raise InvalidError('Positional arguments are not allowed. Suggestion: `@web_endpoint(method="GET")`.')
|
334
|
+
raise InvalidError('Positional arguments are not allowed. Suggestion: `@modal.web_endpoint(method="GET")`.')
|
331
335
|
elif _warn_parentheses_missing is not None:
|
332
336
|
raise InvalidError(
|
333
|
-
"Positional arguments are not allowed. Did you forget parentheses? Suggestion: `@web_endpoint()`."
|
337
|
+
"Positional arguments are not allowed. Did you forget parentheses? Suggestion: `@modal.web_endpoint()`."
|
334
338
|
)
|
335
339
|
|
336
340
|
deprecation_warning(
|
@@ -391,10 +395,10 @@ def _asgi_app(
|
|
391
395
|
[guide on web endpoints](https://modal.com/docs/guide/webhooks).
|
392
396
|
"""
|
393
397
|
if isinstance(_warn_parentheses_missing, str):
|
394
|
-
raise InvalidError('Positional arguments are not allowed. Suggestion: `@asgi_app(label="
|
398
|
+
raise InvalidError(f'Positional arguments are not allowed. Suggestion: `@modal.asgi_app(label="{label}")`.')
|
395
399
|
elif _warn_parentheses_missing is not None:
|
396
400
|
raise InvalidError(
|
397
|
-
"Positional arguments are not allowed. Did you forget parentheses? Suggestion: `@asgi_app()`."
|
401
|
+
"Positional arguments are not allowed. Did you forget parentheses? Suggestion: `@modal.asgi_app()`."
|
398
402
|
)
|
399
403
|
|
400
404
|
def wrapper(raw_f: Callable[..., Any]) -> _PartialFunction:
|
@@ -459,10 +463,10 @@ def _wsgi_app(
|
|
459
463
|
[guide on web endpoints](https://modal.com/docs/guide/webhooks).
|
460
464
|
"""
|
461
465
|
if isinstance(_warn_parentheses_missing, str):
|
462
|
-
raise InvalidError('Positional arguments are not allowed. Suggestion: `@wsgi_app(label="
|
466
|
+
raise InvalidError(f'Positional arguments are not allowed. Suggestion: `@modal.wsgi_app(label="{label}")`.')
|
463
467
|
elif _warn_parentheses_missing is not None:
|
464
468
|
raise InvalidError(
|
465
|
-
"Positional arguments are not allowed. Did you forget parentheses? Suggestion: `@wsgi_app()`."
|
469
|
+
"Positional arguments are not allowed. Did you forget parentheses? Suggestion: `@modal.wsgi_app()`."
|
466
470
|
)
|
467
471
|
|
468
472
|
def wrapper(raw_f: Callable[..., Any]) -> _PartialFunction:
|
@@ -587,7 +591,9 @@ def _build(
|
|
587
591
|
```
|
588
592
|
"""
|
589
593
|
if _warn_parentheses_missing is not None:
|
590
|
-
raise InvalidError(
|
594
|
+
raise InvalidError(
|
595
|
+
"Positional arguments are not allowed. Did you forget parentheses? Suggestion: `@modal.build()`."
|
596
|
+
)
|
591
597
|
|
592
598
|
deprecation_warning(
|
593
599
|
(2025, 1, 15),
|
@@ -619,7 +625,9 @@ def _enter(
|
|
619
625
|
|
620
626
|
See the [lifeycle function guide](https://modal.com/docs/guide/lifecycle-functions#enter) for more information."""
|
621
627
|
if _warn_parentheses_missing is not None:
|
622
|
-
raise InvalidError(
|
628
|
+
raise InvalidError(
|
629
|
+
"Positional arguments are not allowed. Did you forget parentheses? Suggestion: `@modal.enter()`."
|
630
|
+
)
|
623
631
|
|
624
632
|
if snap:
|
625
633
|
flag = _PartialFunctionFlags.ENTER_PRE_SNAPSHOT
|
@@ -651,7 +659,9 @@ def _exit(_warn_parentheses_missing=None) -> Callable[[ExitHandlerType], _Partia
|
|
651
659
|
|
652
660
|
See the [lifeycle function guide](https://modal.com/docs/guide/lifecycle-functions#exit) for more information."""
|
653
661
|
if _warn_parentheses_missing is not None:
|
654
|
-
raise InvalidError(
|
662
|
+
raise InvalidError(
|
663
|
+
"Positional arguments are not allowed. Did you forget parentheses? Suggestion: `@modal.exit()`."
|
664
|
+
)
|
655
665
|
|
656
666
|
def wrapper(f: ExitHandlerType) -> _PartialFunction:
|
657
667
|
if isinstance(f, _PartialFunction):
|
@@ -686,7 +696,7 @@ def _batched(
|
|
686
696
|
"""
|
687
697
|
if _warn_parentheses_missing is not None:
|
688
698
|
raise InvalidError(
|
689
|
-
"Positional arguments are not allowed. Did you forget parentheses? Suggestion: `@batched()`."
|
699
|
+
"Positional arguments are not allowed. Did you forget parentheses? Suggestion: `@modal.batched()`."
|
690
700
|
)
|
691
701
|
if max_batch_size < 1:
|
692
702
|
raise InvalidError("max_batch_size must be a positive integer.")
|
modal/client.pyi
CHANGED
@@ -31,7 +31,7 @@ class _Client:
|
|
31
31
|
server_url: str,
|
32
32
|
client_type: int,
|
33
33
|
credentials: typing.Optional[tuple[str, str]],
|
34
|
-
version: str = "0.73.
|
34
|
+
version: str = "0.73.110",
|
35
35
|
): ...
|
36
36
|
def is_closed(self) -> bool: ...
|
37
37
|
@property
|
@@ -93,7 +93,7 @@ class Client:
|
|
93
93
|
server_url: str,
|
94
94
|
client_type: int,
|
95
95
|
credentials: typing.Optional[tuple[str, str]],
|
96
|
-
version: str = "0.73.
|
96
|
+
version: str = "0.73.110",
|
97
97
|
): ...
|
98
98
|
def is_closed(self) -> bool: ...
|
99
99
|
@property
|
@@ -8,7 +8,7 @@ modal/_ipython.py,sha256=TW1fkVOmZL3YYqdS2YlM1hqpf654Yf8ZyybHdBnlhSw,301
|
|
8
8
|
modal/_location.py,sha256=joiX-0ZeutEUDTrrqLF1GHXCdVLF-rHzstocbMcd_-k,366
|
9
9
|
modal/_object.py,sha256=JBIECWdfpRKCaCxVWZbC3Q1kF5Whk_EKvY9f4Y6AFyg,11446
|
10
10
|
modal/_output.py,sha256=Z0nngPh2mKHMQc4MQ92YjVPc3ewOLa3I4dFBlL9nvQY,25656
|
11
|
-
modal/_partial_function.py,sha256=
|
11
|
+
modal/_partial_function.py,sha256=ytUhfUEVPMccVD3wMekr2JRo5R0YylaE0LgPsSA05aQ,30508
|
12
12
|
modal/_proxy_tunnel.py,sha256=gnKyCfmVB7x2d1A6c-JDysNIP3kEFxmXzhcXhPrzPn0,1906
|
13
13
|
modal/_pty.py,sha256=JZfPDDpzqICZqtyPI_oMJf_9w-p_lLNuzHhwhodUXio,1329
|
14
14
|
modal/_resolver.py,sha256=RtoXoYzSllPlFu0D1vel_FWiEmDO7RyToiC2bxeN8ZY,6917
|
@@ -22,7 +22,7 @@ modal/app.py,sha256=ojhuLZuNZAQ1OsbDH0k6G4pm1W7bOIvZfXbaKlvQ-Ao,45622
|
|
22
22
|
modal/app.pyi,sha256=tZFbcsu20SuvfB2puxCyuXLFNJ9bQulzag55rVpgZmc,26827
|
23
23
|
modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
|
24
24
|
modal/client.py,sha256=j9D3hNis1lfhnz9lVFGgJgowbH3PaGUzNKgHPWYG778,15372
|
25
|
-
modal/client.pyi,sha256=
|
25
|
+
modal/client.pyi,sha256=8wk2AtEE6BdVPKxcW3dmMqVFtGiVR3mkQfvFLUEvzD0,7661
|
26
26
|
modal/cloud_bucket_mount.py,sha256=YOe9nnvSr4ZbeCn587d7_VhE9IioZYRvF9VYQTQux08,5914
|
27
27
|
modal/cloud_bucket_mount.pyi,sha256=30T3K1a89l6wzmEJ_J9iWv9SknoGqaZDx59Xs-ZQcmk,1607
|
28
28
|
modal/cls.py,sha256=JhDbaZZHN52lqA_roY1BCbcN9BvbkUcdXiM2Kg9lIc0,31717
|
@@ -170,10 +170,10 @@ modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0y
|
|
170
170
|
modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
171
171
|
modal_version/__init__.py,sha256=wiJQ53c-OMs0Xf1UeXOxQ7FwlV1VzIjnX6o-pRYZ_Pk,470
|
172
172
|
modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
|
173
|
-
modal_version/_version_generated.py,sha256=
|
174
|
-
modal-0.73.
|
175
|
-
modal-0.73.
|
176
|
-
modal-0.73.
|
177
|
-
modal-0.73.
|
178
|
-
modal-0.73.
|
179
|
-
modal-0.73.
|
173
|
+
modal_version/_version_generated.py,sha256=8xE1_e6j1-IF7iKtLxURLc2dU1gu-GpjgU8T0-_r80c,150
|
174
|
+
modal-0.73.110.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
175
|
+
modal-0.73.110.dist-info/METADATA,sha256=V5bZTe_T_u3Y4BiJMLgAYIxqiySKxF6DukCX14Mvagk,2453
|
176
|
+
modal-0.73.110.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
177
|
+
modal-0.73.110.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
|
178
|
+
modal-0.73.110.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
|
179
|
+
modal-0.73.110.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|