From 892c48d353715feaf0113863fc5d21f172a43bd0 Mon Sep 17 00:00:00 2001 From: Younes Strittmatter Date: Wed, 6 Sep 2023 07:29:39 +0200 Subject: [PATCH] Update src/autora/state.py Co-authored-by: Ben Andrew --- src/autora/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/autora/state.py b/src/autora/state.py index 22d8af6c..61e1ca27 100644 --- a/src/autora/state.py +++ b/src/autora/state.py @@ -1242,7 +1242,7 @@ def on_state( >>> add_six(W(conditions=[1, 2, 3, 4])) W(conditions=[7, 8, 9, 10]) - You can also declare input to output mopping, if the keyword arguments of the functions + You can also declare an input-to-output mapping if the keyword arguments of the functions don't match the state fields: >>> @on_state(input_mapping={'X': 'conditions'}, output=["conditions"]) ... def add_six(X):