Skip to content

Commit

Permalink
Update src/autora/state.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Andrew <[email protected]>
  • Loading branch information
younesStrittmatter and benwandrew authored Sep 6, 2023
1 parent 084d307 commit 892c48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autora/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 892c48d

Please sign in to comment.