Skip to content

Commit

Permalink
Export modal.FunctionCall at the top level for FunctionCall.from_id() (
Browse files Browse the repository at this point in the history
…#2870)

* Export modal.FunctionCall at the top level for FunctionCall.from_id()

* Change docstrings
  • Loading branch information
freider authored Feb 13, 2025
1 parent d499c66 commit 65ca596
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion modal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from .dict import Dict
from .exception import Error
from .file_pattern_matcher import FilePatternMatcher
from .functions import Function
from .functions import Function, FunctionCall
from .image import Image
from .mount import Mount
from .network_file_system import NetworkFileSystem
Expand Down Expand Up @@ -52,6 +52,7 @@
"Error",
"FilePatternMatcher",
"Function",
"FunctionCall",
"Image",
"Mount",
"NetworkFileSystem",
Expand Down
4 changes: 2 additions & 2 deletions modal/_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ async def _experimental_spawn(self, *args: P.args, **kwargs: P.kwargs) -> "_Func
This experimental version of the spawn method allows up to 1 million inputs to be spawned.
Returns a `modal.functions.FunctionCall` object, that can later be polled or
Returns a `modal.FunctionCall` object, that can later be polled or
waited for using `.get(timeout=...)`.
Conceptually similar to `multiprocessing.pool.apply_async`, or a Future/Promise in other contexts.
"""
Expand All @@ -1497,7 +1497,7 @@ async def _experimental_spawn(self, *args: P.args, **kwargs: P.kwargs) -> "_Func
async def spawn(self, *args: P.args, **kwargs: P.kwargs) -> "_FunctionCall[ReturnType]":
"""Calls the function with the given arguments, without waiting for the results.
Returns a `modal.functions.FunctionCall` object, that can later be polled or
Returns a `modal.FunctionCall` object, that can later be polled or
waited for using `.get(timeout=...)`.
Conceptually similar to `multiprocessing.pool.apply_async`, or a Future/Promise in other contexts.
"""
Expand Down

0 comments on commit 65ca596

Please sign in to comment.