modal 0.73.107__py3-none-any.whl → 0.73.108__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/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.107",
34
+ version: str = "0.73.108",
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.107",
96
+ version: str = "0.73.108",
97
97
  ): ...
98
98
  def is_closed(self) -> bool: ...
99
99
  @property
modal/image.py CHANGED
@@ -1383,7 +1383,9 @@ class _Image(_Object, type_prefix="im"):
1383
1383
  entrypoint_commands: list[str],
1384
1384
  ) -> "_Image":
1385
1385
  """Set the entrypoint for the image."""
1386
- args_str = _flatten_str_args("entrypoint", "entrypoint_files", entrypoint_commands)
1386
+ if not isinstance(entrypoint_commands, list) or not all(isinstance(x, str) for x in entrypoint_commands):
1387
+ raise InvalidError("entrypoint_commands must be a list of strings.")
1388
+ args_str = _flatten_str_args("entrypoint", "entrypoint_commands", entrypoint_commands)
1387
1389
  args_str = '"' + '", "'.join(args_str) + '"' if args_str else ""
1388
1390
  dockerfile_cmd = f"ENTRYPOINT [{args_str}]"
1389
1391
 
@@ -1394,6 +1396,8 @@ class _Image(_Object, type_prefix="im"):
1394
1396
  shell_commands: list[str],
1395
1397
  ) -> "_Image":
1396
1398
  """Overwrite default shell for the image."""
1399
+ if not isinstance(shell_commands, list) or not all(isinstance(x, str) for x in shell_commands):
1400
+ raise InvalidError("shell_commands must be a list of strings.")
1397
1401
  args_str = _flatten_str_args("shell", "shell_commands", shell_commands)
1398
1402
  args_str = '"' + '", "'.join(args_str) + '"' if args_str else ""
1399
1403
  dockerfile_cmd = f"SHELL [{args_str}]"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: modal
3
- Version: 0.73.107
3
+ Version: 0.73.108
4
4
  Summary: Python client library for Modal
5
5
  Author-email: Modal Labs <support@modal.com>
6
6
  License: Apache-2.0
@@ -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=zk_fqo5hUeiYvbtxSBT5tnvf9bjiFZVBtNGH7Rltxzc,7661
25
+ modal/client.pyi,sha256=2lsU71NfmLEh5iP5JSJvcp8dwwj109jdMWio6PeMTpA,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
@@ -43,7 +43,7 @@ modal/file_pattern_matcher.py,sha256=trosX-Bp7dOubudN1bLLhRAoidWy1TcoaR4Pv8CedWw
43
43
  modal/functions.py,sha256=kcNHvqeGBxPI7Cgd57NIBBghkfbeFJzXO44WW0jSmao,325
44
44
  modal/functions.pyi,sha256=D-PDJfSbwqMDXdq7Bxu2ErZRENo-tRgu_zPoB-jl0OU,14377
45
45
  modal/gpu.py,sha256=Kbhs_u49FaC2Zi0TjCdrpstpRtT5eZgecynmQi5IZVE,6752
46
- modal/image.py,sha256=o9wnpB03agSoErzh-odrKU2BprROxRZOWGJidjZeeds,91811
46
+ modal/image.py,sha256=Q-zNKdDmn7HHRv8YW7cIVYD1lbsOiiRuWfTZqLjGu2U,92189
47
47
  modal/image.pyi,sha256=DQ4DLOCPr6_yV7z4LS0bTY0rOyvQP9-dQOrzaW7pPG8,25260
48
48
  modal/io_streams.py,sha256=h5O2LmbRoT9l777z3TQhCAm-JF1r7avZ2ykXlejztDs,15163
49
49
  modal/io_streams.pyi,sha256=bJ7ZLmSmJ0nKoa6r4FJpbqvzdUVa0lEe0Fa-MMpMezU,5071
@@ -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=nfjrv63ua8knwBgcK91Et-6cu5foto7KNinAK4c83q4,150
174
- modal-0.73.107.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
175
- modal-0.73.107.dist-info/METADATA,sha256=9XBg9dtDboOAYuWQOiDTTTLi-R4KZc_3lWKjB_o-2-c,2453
176
- modal-0.73.107.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
177
- modal-0.73.107.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
178
- modal-0.73.107.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
179
- modal-0.73.107.dist-info/RECORD,,
173
+ modal_version/_version_generated.py,sha256=_MareI1KxTvIpRw3spc7HB9lnNuDCXaFRg4oNNHOsuU,150
174
+ modal-0.73.108.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
175
+ modal-0.73.108.dist-info/METADATA,sha256=08_YVMG45tQ90glBKuem2HYsCiWHX37cK8nViAOw6Fs,2453
176
+ modal-0.73.108.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
177
+ modal-0.73.108.dist-info/entry_points.txt,sha256=An-wYgeEUnm6xzrAP9_NTSTSciYvvEWsMZILtYrvpAI,46
178
+ modal-0.73.108.dist-info/top_level.txt,sha256=4BWzoKYREKUZ5iyPzZpjqx4G8uB5TWxXPDwibLcVa7k,43
179
+ modal-0.73.108.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  # Copyright Modal Labs 2025
2
2
 
3
3
  # Note: Reset this value to -1 whenever you make a minor `0.X` release of the client.
4
- build_number = 107 # git: 768424b
4
+ build_number = 108 # git: 06adea3