modal 0.72.21__py3-none-any.whl → 0.72.23__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.
Files changed (48) hide show
  1. modal/_container_entrypoint.py +1 -1
  2. modal/_object.py +279 -0
  3. modal/_resolver.py +7 -5
  4. modal/_runtime/user_code_imports.py +7 -7
  5. modal/_serialization.py +4 -3
  6. modal/app.py +1 -1
  7. modal/app.pyi +4 -3
  8. modal/cli/app.py +1 -1
  9. modal/cli/container.py +1 -1
  10. modal/client.py +1 -0
  11. modal/client.pyi +4 -2
  12. modal/cls.py +1 -1
  13. modal/cls.pyi +2 -1
  14. modal/dict.py +1 -1
  15. modal/dict.pyi +2 -1
  16. modal/environments.py +1 -1
  17. modal/environments.pyi +2 -1
  18. modal/functions.py +18 -20
  19. modal/functions.pyi +13 -12
  20. modal/image.py +6 -6
  21. modal/image.pyi +2 -1
  22. modal/mount.py +1 -1
  23. modal/mount.pyi +2 -1
  24. modal/network_file_system.py +7 -7
  25. modal/network_file_system.pyi +2 -1
  26. modal/object.py +2 -265
  27. modal/object.pyi +30 -122
  28. modal/proxy.py +1 -1
  29. modal/proxy.pyi +2 -1
  30. modal/queue.py +1 -1
  31. modal/queue.pyi +2 -1
  32. modal/runner.py +2 -2
  33. modal/sandbox.py +1 -1
  34. modal/sandbox.pyi +2 -1
  35. modal/secret.py +1 -1
  36. modal/secret.pyi +2 -1
  37. modal/volume.py +1 -1
  38. modal/volume.pyi +2 -1
  39. {modal-0.72.21.dist-info → modal-0.72.23.dist-info}/METADATA +1 -1
  40. {modal-0.72.21.dist-info → modal-0.72.23.dist-info}/RECORD +48 -47
  41. modal_proto/api.proto +1 -1
  42. modal_proto/api_pb2.py +246 -246
  43. modal_proto/api_pb2.pyi +5 -2
  44. modal_version/_version_generated.py +1 -1
  45. {modal-0.72.21.dist-info → modal-0.72.23.dist-info}/LICENSE +0 -0
  46. {modal-0.72.21.dist-info → modal-0.72.23.dist-info}/WHEEL +0 -0
  47. {modal-0.72.21.dist-info → modal-0.72.23.dist-info}/entry_points.txt +0 -0
  48. {modal-0.72.21.dist-info → modal-0.72.23.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi CHANGED
@@ -7177,16 +7177,19 @@ class SandboxGetTaskIdRequest(google.protobuf.message.Message):
7177
7177
  WAIT_UNTIL_READY_FIELD_NUMBER: builtins.int
7178
7178
  sandbox_id: builtins.str
7179
7179
  timeout: builtins.float
7180
+ """Legacy clients do not provide a timeout. New clients must always provide a timeout."""
7180
7181
  wait_until_ready: builtins.bool
7181
7182
  """If true, waits until the container's postStart hook has been run before returning. Useful for detecting init failures."""
7182
7183
  def __init__(
7183
7184
  self,
7184
7185
  *,
7185
7186
  sandbox_id: builtins.str = ...,
7186
- timeout: builtins.float = ...,
7187
+ timeout: builtins.float | None = ...,
7187
7188
  wait_until_ready: builtins.bool = ...,
7188
7189
  ) -> None: ...
7189
- def ClearField(self, field_name: typing_extensions.Literal["sandbox_id", b"sandbox_id", "timeout", b"timeout", "wait_until_ready", b"wait_until_ready"]) -> None: ...
7190
+ def HasField(self, field_name: typing_extensions.Literal["_timeout", b"_timeout", "timeout", b"timeout"]) -> builtins.bool: ...
7191
+ def ClearField(self, field_name: typing_extensions.Literal["_timeout", b"_timeout", "sandbox_id", b"sandbox_id", "timeout", b"timeout", "wait_until_ready", b"wait_until_ready"]) -> None: ...
7192
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_timeout", b"_timeout"]) -> typing_extensions.Literal["timeout"] | None: ...
7190
7193
 
7191
7194
  global___SandboxGetTaskIdRequest = SandboxGetTaskIdRequest
7192
7195
 
@@ -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 = 21 # git: 653aa96
4
+ build_number = 23 # git: fcb6554