modal 0.73.145__tar.gz → 0.73.147__tar.gz
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-0.73.145 → modal-0.73.147}/PKG-INFO +1 -1
- {modal-0.73.145 → modal-0.73.147}/modal/_functions.py +8 -6
- {modal-0.73.145 → modal-0.73.147}/modal/_partial_function.py +384 -264
- {modal-0.73.145 → modal-0.73.147}/modal/_runtime/user_code_imports.py +2 -2
- {modal-0.73.145 → modal-0.73.147}/modal/app.py +20 -20
- {modal-0.73.145 → modal-0.73.147}/modal/client.pyi +2 -2
- {modal-0.73.145 → modal-0.73.147}/modal/cls.py +11 -7
- {modal-0.73.145 → modal-0.73.147}/modal/container_process.py +4 -1
- {modal-0.73.145 → modal-0.73.147}/modal/container_process.pyi +2 -0
- {modal-0.73.145 → modal-0.73.147}/modal/experimental/__init__.py +6 -35
- {modal-0.73.145 → modal-0.73.147}/modal/partial_function.py +1 -1
- modal-0.73.147/modal/partial_function.pyi +172 -0
- {modal-0.73.145 → modal-0.73.147}/modal/sandbox.py +1 -1
- {modal-0.73.145 → modal-0.73.147}/modal.egg-info/PKG-INFO +1 -1
- {modal-0.73.145 → modal-0.73.147}/modal_version/_version_generated.py +1 -1
- modal-0.73.145/modal/partial_function.pyi +0 -129
- {modal-0.73.145 → modal-0.73.147}/LICENSE +0 -0
- {modal-0.73.145 → modal-0.73.147}/README.md +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/__init__.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/__main__.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_clustered_functions.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_clustered_functions.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_container_entrypoint.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_ipython.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_location.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_object.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_output.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_proxy_tunnel.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_pty.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_resolver.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_resources.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_runtime/__init__.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_runtime/asgi.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_runtime/container_io_manager.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_runtime/container_io_manager.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_runtime/execution_context.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_runtime/execution_context.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_runtime/gpu_memory_snapshot.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_runtime/telemetry.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_serialization.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_traceback.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_tunnel.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_tunnel.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_type_manager.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/__init__.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/app_utils.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/async_utils.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/blob_utils.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/bytes_io_segment_payload.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/deprecation.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/docker_utils.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/function_utils.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/git_utils.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/grpc_testing.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/grpc_utils.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/hash_utils.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/http_utils.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/jwt_utils.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/logger.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/mount_utils.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/name_utils.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/package_utils.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/pattern_utils.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/rand_pb_testing.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_utils/shell_utils.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_vendor/__init__.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_vendor/a2wsgi_wsgi.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_vendor/cloudpickle.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_vendor/tblib.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/_watcher.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/app.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/call_graph.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/__init__.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/_download.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/_traceback.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/app.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/config.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/container.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/dict.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/entry_point.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/environment.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/import_refs.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/launch.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/network_file_system.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/profile.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/programs/__init__.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/programs/run_jupyter.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/programs/vscode.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/queues.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/run.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/secret.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/token.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/utils.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cli/volume.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/client.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cloud_bucket_mount.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cloud_bucket_mount.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/cls.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/config.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/dict.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/dict.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/environments.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/environments.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/exception.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/experimental/ipython.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/file_io.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/file_io.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/file_pattern_matcher.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/functions.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/functions.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/gpu.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/image.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/image.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/io_streams.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/io_streams.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/mount.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/mount.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/network_file_system.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/network_file_system.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/object.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/object.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/output.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/parallel_map.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/parallel_map.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/proxy.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/proxy.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/py.typed +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/queue.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/queue.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/requirements/2023.12.312.txt +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/requirements/2023.12.txt +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/requirements/2024.04.txt +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/requirements/2024.10.txt +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/requirements/PREVIEW.txt +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/requirements/README.md +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/requirements/base-images.json +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/retries.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/runner.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/runner.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/running_app.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/sandbox.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/schedule.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/scheduler_placement.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/secret.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/secret.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/serving.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/serving.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/snapshot.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/snapshot.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/stream_type.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/token_flow.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/token_flow.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/volume.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal/volume.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal.egg-info/SOURCES.txt +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal.egg-info/dependency_links.txt +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal.egg-info/entry_points.txt +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal.egg-info/requires.txt +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal.egg-info/top_level.txt +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_docs/__init__.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_docs/gen_cli_docs.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_docs/gen_reference_docs.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_docs/mdmd/__init__.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_docs/mdmd/mdmd.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_docs/mdmd/signatures.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_proto/__init__.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_proto/api.proto +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_proto/api_grpc.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_proto/api_pb2.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_proto/api_pb2.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_proto/api_pb2_grpc.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_proto/api_pb2_grpc.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_proto/modal_api_grpc.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_proto/modal_options_grpc.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_proto/options.proto +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_proto/options_grpc.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_proto/options_pb2.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_proto/options_pb2.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_proto/options_pb2_grpc.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_proto/options_pb2_grpc.pyi +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_proto/py.typed +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_version/__init__.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/modal_version/__main__.py +0 -0
- {modal-0.73.145 → modal-0.73.147}/pyproject.toml +0 -0
- {modal-0.73.145 → modal-0.73.147}/setup.cfg +0 -0
@@ -564,7 +564,7 @@ class _Function(typing.Generic[P, ReturnType, OriginalReturnType], _Object, type
|
|
564
564
|
network_file_systems=network_file_systems,
|
565
565
|
volumes=volumes,
|
566
566
|
memory=memory,
|
567
|
-
timeout=pf.build_timeout,
|
567
|
+
timeout=pf.params.build_timeout,
|
568
568
|
cpu=cpu,
|
569
569
|
ephemeral_disk=ephemeral_disk,
|
570
570
|
is_builder_function=True,
|
@@ -575,7 +575,7 @@ class _Function(typing.Generic[P, ReturnType, OriginalReturnType], _Object, type
|
|
575
575
|
image = _Image._from_args(
|
576
576
|
base_images={"base": image},
|
577
577
|
build_function=snapshot_function,
|
578
|
-
force_build=image.force_build or pf.force_build,
|
578
|
+
force_build=image.force_build or bool(pf.params.force_build),
|
579
579
|
)
|
580
580
|
|
581
581
|
# Note that we also do these checks in FunctionCreate; could drop them here
|
@@ -644,12 +644,14 @@ class _Function(typing.Generic[P, ReturnType, OriginalReturnType], _Object, type
|
|
644
644
|
|
645
645
|
if info.user_cls:
|
646
646
|
method_definitions = {}
|
647
|
-
|
648
|
-
|
649
|
-
|
647
|
+
interface_methods = _find_partial_methods_for_user_cls(
|
648
|
+
info.user_cls, _PartialFunctionFlags.interface_flags()
|
649
|
+
)
|
650
|
+
for method_name, partial_function in interface_methods.items():
|
651
|
+
function_type = get_function_type(partial_function.params.is_generator)
|
650
652
|
function_name = f"{info.user_cls.__name__}.{method_name}"
|
651
653
|
method_definition = api_pb2.MethodDefinition(
|
652
|
-
webhook_config=partial_function.webhook_config,
|
654
|
+
webhook_config=partial_function.params.webhook_config,
|
653
655
|
function_type=function_type,
|
654
656
|
function_name=function_name,
|
655
657
|
)
|