modal 1.0.6.dev44__py3-none-any.whl → 1.0.6.dev46__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.

Potentially problematic release.


This version of modal might be problematic. Click here for more details.

@@ -511,12 +511,7 @@ class _ContainerIOManager:
511
511
  chunk.data = message_bytes
512
512
  data_chunks.append(chunk)
513
513
 
514
- attempt_token = await self._client._auth_token_manager.get_token()
515
- req = api_pb2.FunctionCallPutDataRequest(
516
- function_call_id=function_call_id,
517
- data_chunks=data_chunks,
518
- attempt_token=attempt_token,
519
- )
514
+ req = api_pb2.FunctionCallPutDataRequest(function_call_id=function_call_id, data_chunks=data_chunks)
520
515
 
521
516
  if self.input_plane_server_url:
522
517
  stub = await self._client.get_stub(self.input_plane_server_url)
modal/_serialization.py CHANGED
@@ -14,7 +14,7 @@ from modal_proto import api_pb2
14
14
  from ._object import _Object
15
15
  from ._type_manager import parameter_serde_registry, schema_registry
16
16
  from ._vendor import cloudpickle
17
- from .config import config, logger
17
+ from .config import logger
18
18
  from .exception import DeserializationError, ExecutionError, InvalidError
19
19
  from .object import Object
20
20
 
@@ -555,11 +555,16 @@ def get_callable_schema(
555
555
  callable: typing.Callable, *, is_web_endpoint: bool, ignore_first_argument: bool = False
556
556
  ) -> typing.Optional[api_pb2.FunctionSchema]:
557
557
  # ignore_first_argument can be used in case of unbound methods where we want to ignore the first (self) argument
558
- if is_web_endpoint or not config.get("function_schemas"):
558
+ if is_web_endpoint:
559
559
  # we don't support schemas on web endpoints for now
560
560
  return None
561
561
 
562
- sig = inspect.signature(callable)
562
+ try:
563
+ sig = inspect.signature(callable)
564
+ except Exception as e:
565
+ logger.debug(f"Error getting signature for function {callable}", exc_info=e)
566
+ return None
567
+
563
568
  # TODO: treat no return value annotation as None return?
564
569
  return_type_proto = schema_registry.get_proto_generic_type(sig.return_annotation)
565
570
  arguments = []
modal/client.pyi CHANGED
@@ -33,7 +33,7 @@ class _Client:
33
33
  server_url: str,
34
34
  client_type: int,
35
35
  credentials: typing.Optional[tuple[str, str]],
36
- version: str = "1.0.6.dev44",
36
+ version: str = "1.0.6.dev46",
37
37
  ):
38
38
  """mdmd:hidden
39
39
  The Modal client object is not intended to be instantiated directly by users.
@@ -163,7 +163,7 @@ class Client:
163
163
  server_url: str,
164
164
  client_type: int,
165
165
  credentials: typing.Optional[tuple[str, str]],
166
- version: str = "1.0.6.dev44",
166
+ version: str = "1.0.6.dev46",
167
167
  ):
168
168
  """mdmd:hidden
169
169
  The Modal client object is not intended to be instantiated directly by users.
modal/config.py CHANGED
@@ -238,7 +238,6 @@ _SETTINGS = {
238
238
  "strict_parameters": _Setting(False, transform=_to_boolean), # For internal/experimental use
239
239
  "snapshot_debug": _Setting(False, transform=_to_boolean),
240
240
  "cuda_checkpoint_path": _Setting("/__modal/.bin/cuda-checkpoint"), # Used for snapshotting GPU memory.
241
- "function_schemas": _Setting(False, transform=_to_boolean),
242
241
  "build_validation": _Setting("error", transform=_check_value(["error", "warn", "ignore"])),
243
242
  }
244
243
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: modal
3
- Version: 1.0.6.dev44
3
+ Version: 1.0.6.dev46
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License: Apache-2.0
@@ -12,7 +12,7 @@ modal/_partial_function.py,sha256=yq--_U7jU7nkZNLWFImVvin9P5A-FiOZLUVEuw9xKoE,36
12
12
  modal/_pty.py,sha256=JZfPDDpzqICZqtyPI_oMJf_9w-p_lLNuzHhwhodUXio,1329
13
13
  modal/_resolver.py,sha256=-nolqj_p_mx5czVYj1Mazh2IQWpSMrTOGughVJqYfo8,7579
14
14
  modal/_resources.py,sha256=NMAp0GCLutiZI4GuKSIVnRHVlstoD3hNGUabjTUtzf4,1794
15
- modal/_serialization.py,sha256=MiUWk1yYhW2eKEsnD1_RsyDAsPsK0F00AgZONMqsWVA,24045
15
+ modal/_serialization.py,sha256=wt09fOwo-E9ATlOG91O9RXCTPRNtsm97v4Unk8Bzd-8,24145
16
16
  modal/_traceback.py,sha256=IZQzB3fVlUfMHOSyKUgw0H6qv4yHnpyq-XVCNZKfUdA,5023
17
17
  modal/_tunnel.py,sha256=zTBxBiuH1O22tS1OliAJdIsSmaZS8PlnifS_6S5z-mk,6320
18
18
  modal/_tunnel.pyi,sha256=rvC7USR2BcKkbZIeCJXwf7-UfGE-LPLjKsGNiK7Lxa4,13366
@@ -22,12 +22,12 @@ modal/app.py,sha256=U0sPiHpphcRHLnoLYh2IrU2RSpRFX9BE5uHb7h42STs,47478
22
22
  modal/app.pyi,sha256=cXiSTu2bwu6csAUdkOlh7mr9tPvtaS2qWSEhlC1UxAg,43787
23
23
  modal/call_graph.py,sha256=1g2DGcMIJvRy-xKicuf63IVE98gJSnQsr8R_NVMptNc,2581
24
24
  modal/client.py,sha256=5QyM7VJjsFbHf6E91ar3A2KY9mx03wdtGlNJvfTKUVs,17087
25
- modal/client.pyi,sha256=9oV7qgXE_kUJyR0Dvql4xvzZpBKSlL0JicmZv6F9FBY,15270
25
+ modal/client.pyi,sha256=XrFEHUFGAKbIeQugGthiLTV7TI3SPBhAdPAUKOsUXbM,15270
26
26
  modal/cloud_bucket_mount.py,sha256=YOe9nnvSr4ZbeCn587d7_VhE9IioZYRvF9VYQTQux08,5914
27
27
  modal/cloud_bucket_mount.pyi,sha256=-qSfYAQvIoO_l2wsCCGTG5ZUwQieNKXdAO00yP1-LYU,7394
28
28
  modal/cls.py,sha256=B5EtzpBXemH718YvgXaYjuTKvairvqfXJ7IwLZ_6vVA,40034
29
29
  modal/cls.pyi,sha256=_tZ5qrlL-ZDEcD-mf9BZkkNH5XPr4SmGTEQ-RVmqF3I,27772
30
- modal/config.py,sha256=e8sQ4RgwgJ_45S302vWUWs_wqRlKyEt3tU898RiaDKE,12073
30
+ modal/config.py,sha256=FqVewLPVVR4feq_46JBENiCzqTuXKpnvQZxaeWbS39g,12009
31
31
  modal/container_process.py,sha256=dfqa6YFRhNQ4XeZ8cS5DVh-VpzfavA2asrXwrLRHYXg,6780
32
32
  modal/container_process.pyi,sha256=9m-st3hCUlNN1GOTctfPPvIvoLtEl7FbuGWwif5-7YU,6037
33
33
  modal/dict.py,sha256=wVIkHPFvR8WDoh5c6jT0UstZYmJTpCTM8drkwwjLiAc,14387
@@ -82,7 +82,7 @@ modal/volume.py,sha256=7-nLtHhIY18qPJo0W23rBc2p4chf-t4Se3uJPzTSzoA,44333
82
82
  modal/volume.pyi,sha256=sjr67f0npiRzl2j3blrcMA_QSoogJAS0xLqWI06xWXQ,40727
83
83
  modal/_runtime/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
84
84
  modal/_runtime/asgi.py,sha256=_2xSTsDD27Cit7xnMs4lzkJA2wzer2_N4Oa3BkXFzVA,22521
85
- modal/_runtime/container_io_manager.py,sha256=K7IAaCx_R1EEYvhPD_O_d4DLpDMsptZxCYRsO5iDfLY,45459
85
+ modal/_runtime/container_io_manager.py,sha256=rtt7tZUhduAJTOLXw8a5Oh821m_9eLcMhuRdGMj1qd8,45308
86
86
  modal/_runtime/container_io_manager.pyi,sha256=_HvYZzpXX-msFDFuOvk1z6L5DBbv5Dfly16PgYDOojY,23065
87
87
  modal/_runtime/execution_context.py,sha256=73Y5zH_o-MhVCrkJXakYVlFkKqCa2CWvqoHjOfJrJGg,3034
88
88
  modal/_runtime/execution_context.pyi,sha256=IFcW1jphqTchX4fy-45rqfz91RhkZPWtIhIvLvGsNGM,2294
@@ -151,7 +151,7 @@ modal/requirements/2025.06.txt,sha256=KxDaVTOwatHvboDo4lorlgJ7-n-MfAwbPwxJ0zcJqr
151
151
  modal/requirements/PREVIEW.txt,sha256=KxDaVTOwatHvboDo4lorlgJ7-n-MfAwbPwxJ0zcJqrs,312
152
152
  modal/requirements/README.md,sha256=9tK76KP0Uph7O0M5oUgsSwEZDj5y-dcUPsnpR0Sc-Ik,854
153
153
  modal/requirements/base-images.json,sha256=JYSDAgHTl-WrV_TZW5icY-IJEnbe2eQ4CZ_KN6EOZKU,1304
154
- modal-1.0.6.dev44.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
154
+ modal-1.0.6.dev46.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
155
155
  modal_docs/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,28
156
156
  modal_docs/gen_cli_docs.py,sha256=c1yfBS_x--gL5bs0N4ihMwqwX8l3IBWSkBAKNNIi6bQ,3801
157
157
  modal_docs/gen_reference_docs.py,sha256=d_CQUGQ0rfw28u75I2mov9AlS773z9rG40-yq5o7g2U,6359
@@ -159,10 +159,10 @@ modal_docs/mdmd/__init__.py,sha256=svYKtV8HDwDCN86zbdWqyq5T8sMdGDj0PVlzc2tIxDM,2
159
159
  modal_docs/mdmd/mdmd.py,sha256=eW5MzrEl7mSclDo4Uv64sQ1-4IyLggldbgUJdBVLDdI,6449
160
160
  modal_docs/mdmd/signatures.py,sha256=XJaZrK7Mdepk5fdX51A8uENiLFNil85Ud0d4MH8H5f0,3218
161
161
  modal_proto/__init__.py,sha256=MIEP8jhXUeGq_eCjYFcqN5b1bxBM4fdk0VESpjWR0fc,28
162
- modal_proto/api.proto,sha256=n-FFNX32_VM2Xb-csW4tMzD8gUoO9Y37oaUIsnVWby0,99419
162
+ modal_proto/api.proto,sha256=jd9gZY8-bAuTHA29Q2krI8ITyZcSPe0r2afxvuZVg2s,99506
163
163
  modal_proto/api_grpc.py,sha256=F7Hu-1Yg7p5a2SbKw9yR4AgpyU0ntvgZTaVbIJMR0DE,122366
164
- modal_proto/api_pb2.py,sha256=KHJ1MW9AWDglhXHunKlvfxWO8cD3q3ikbgr_5REFAX4,349772
165
- modal_proto/api_pb2.pyi,sha256=fzYQPOS5wiyAwQLU7brlXa9gzDzkKmX2OuWO7r5LT7M,476890
164
+ modal_proto/api_pb2.py,sha256=FvAcpNT3sOqmCZIW6Sw_67zGKOpYZd6AxlihRolC1h8,349680
165
+ modal_proto/api_pb2.pyi,sha256=UMDmFYxv2lUpSZ_jQtxqKhVsbKjLmQg6bFeUDziMkfo,476317
166
166
  modal_proto/api_pb2_grpc.py,sha256=pIFrNmCOgRRcIW8A1Ekja9Po6fHcsj54ExDZFzTpYe4,264347
167
167
  modal_proto/api_pb2_grpc.pyi,sha256=vtxrQ9xnQG6ZRXjp2uk43Mb7wV7F4qGYuVl5JUBc8jI,61968
168
168
  modal_proto/modal_api_grpc.py,sha256=Yl_fGbSIuX2FAEnURkYpKqshs7kbNqtz5HlTJEXkbhE,18487
@@ -174,10 +174,10 @@ modal_proto/options_pb2.pyi,sha256=l7DBrbLO7q3Ir-XDkWsajm0d0TQqqrfuX54i4BMpdQg,1
174
174
  modal_proto/options_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
175
175
  modal_proto/options_pb2_grpc.pyi,sha256=CImmhxHsYnF09iENPoe8S4J-n93jtgUYD2JPAc0yJSI,247
176
176
  modal_proto/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
177
- modal_version/__init__.py,sha256=7DNnD1SKUTn4-B7qKEy0tV_E5gj1M7-NBgegMcSrl2Q,121
177
+ modal_version/__init__.py,sha256=0WqZMgsOL5_G5EGQHJemZ47NHtj2QHvSoYKIh-b50uE,121
178
178
  modal_version/__main__.py,sha256=2FO0yYQQwDTh6udt1h-cBnGd1c4ZyHnHSI4BksxzVac,105
179
- modal-1.0.6.dev44.dist-info/METADATA,sha256=iYjNcH4NRey1FuipvObZY18IcWBwC3pPcyEmmDgwo-A,2462
180
- modal-1.0.6.dev44.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
181
- modal-1.0.6.dev44.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
182
- modal-1.0.6.dev44.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
183
- modal-1.0.6.dev44.dist-info/RECORD,,
179
+ modal-1.0.6.dev46.dist-info/METADATA,sha256=p5E_YxlzIzOOrExGLNTD5n1ybGVVi7zrz7aYFVy7Y3o,2462
180
+ modal-1.0.6.dev46.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
181
+ modal-1.0.6.dev46.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
182
+ modal-1.0.6.dev46.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
183
+ modal-1.0.6.dev46.dist-info/RECORD,,
modal_proto/api.proto CHANGED
@@ -1431,7 +1431,7 @@ message Function {
1431
1431
  bool _experimental_enable_gpu_snapshot = 78; // Experimental support for GPU snapshotting
1432
1432
 
1433
1433
  AutoscalerSettings autoscaler_settings = 79; // Bundle of parameters related to autoscaling
1434
- FunctionSchema function_schema = 80;
1434
+ FunctionSchema function_schema = 80; // Function schema, may be missing: client doesn't block deployment if it fails to get it
1435
1435
 
1436
1436
  // For server-side experimental functionality. Prefer using this over individual _experimental_* fields.
1437
1437
  // Note the value type as string. Internally we'll coerce all values to string with str().
@@ -1487,7 +1487,7 @@ message FunctionCallCancelRequest {
1487
1487
  message FunctionCallGetDataRequest {
1488
1488
  string function_call_id = 1;
1489
1489
  uint64 last_index = 2;
1490
- string attempt_token = 3;
1490
+ reserved 3; // attempt_token
1491
1491
  }
1492
1492
 
1493
1493
  message FunctionCallInfo {
@@ -1516,7 +1516,7 @@ message FunctionCallListResponse {
1516
1516
  message FunctionCallPutDataRequest {
1517
1517
  string function_call_id = 1;
1518
1518
  repeated DataChunk data_chunks = 2;
1519
- optional string attempt_token = 3;
1519
+ reserved 3; // attempt_token
1520
1520
  }
1521
1521
 
1522
1522
  message FunctionCreateRequest {