Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
0thernet committed Jun 10, 2024
1 parent 03bf3c9 commit 5844a98
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion substrate/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class RunPythonIn(BaseModel):


class RunPythonOut(BaseModel):
output: Optional[Dict[str, Any]] = None
output: Optional[Any] = None
"""
Return value of your function.
"""
Expand Down
2 changes: 1 addition & 1 deletion substrate/future_dataclass_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class FutureRunPythonOut:
(Future reference)
Contents of stderr if your code did not run successfully.
"""
output: Optional[Dict[str, Any]] = None
output: Optional[Any] = None
"""
(Future reference)
Return value of your function.
Expand Down
6 changes: 3 additions & 3 deletions substrate/run_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ class RunPython(CoreNode[RunPythonOut]):
def __init__(
self,
function: Callable,
kwargs: Dict[str, Any],
kwargs: Dict[str, Any] = {},
pip_install: Optional[List[str]] = None,
hide: bool = False,
):
"""
Args:
function: Function to run
kwargs: Keyword arguments to pass to your function
function: The function to run remotely.
kwargs: Keyword arguments to your function. This can include future references to the output of previous nodes.
pip_install: List of pip dependencies to install in your function's sandbox
https://guides.substrate.run/reference/run-python
Expand Down
2 changes: 1 addition & 1 deletion substrate/typeddict_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class RunPythonIn(TypedDict):


class RunPythonOut(TypedDict):
output: NotRequired[Dict[str, Any]]
output: NotRequired[Any]
"""
Return value of your function.
"""
Expand Down

0 comments on commit 5844a98

Please sign in to comment.