This is an automated email from the ASF dual-hosted git repository.
skrawcz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/burr.git
The following commit(s) were added to refs/heads/main by this push:
new 5df9977 fix MapActions actions signature
5df9977 is described below
commit 5df9977c6ad6474e633c012a368c5e3753e5a72a
Author: oldhu <[email protected]>
AuthorDate: Fri Jun 20 15:45:13 2025 +0800
fix MapActions actions signature
The order of context and inputs was wrong.
---
burr/core/parallelism.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/burr/core/parallelism.py b/burr/core/parallelism.py
index 0c5c237..91c8f30 100644
--- a/burr/core/parallelism.py
+++ b/burr/core/parallelism.py
@@ -598,7 +598,7 @@ class MapActions(MapActionsAndStates, abc.ABC):
class TestMultipleModels(MapActions):
- def actions(self, state: State, inputs: Dict[str, Any], context:
ApplicationContext) -> Generator[Action | Callable | RunnableGraph, None, None]:
+ def actions(self, state: State, context: ApplicationContext,
inputs: Dict[str, Any]) -> Generator[Action | Callable | RunnableGraph, None,
None]:
# Make sure to add a name to the action if you use bind() with
a function,
# note that these can be different actions, functions, etc...
# in this case we're using `.bind()` to create multiple
actions, but we can use some mix of
@@ -631,7 +631,7 @@ class MapActions(MapActionsAndStates, abc.ABC):
@abc.abstractmethod
def actions(
- self, state: State, inputs: Dict[str, Any], context: ApplicationContext
+ self, state: State, context: ApplicationContext, inputs: Dict[str, Any]
) -> SyncOrAsyncGenerator[SubgraphType]:
"""Gives all actions to map over, given the state/inputs.