Skip to content

Commit

Permalink
chore: adhere to style
Browse files Browse the repository at this point in the history
  • Loading branch information
younesStrittmatter committed Sep 3, 2023
1 parent 6123252 commit 2fa53fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/autora/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,6 @@ def inputs_from_state(f, input_mapping: Dict = {}):
"""
# Get the set of parameter names from function f's signature


reversed_mapping = {v: k for k, v in input_mapping.items()}

parameters_ = set(inspect.signature(f).parameters.keys())
Expand Down Expand Up @@ -1181,7 +1180,9 @@ def _f(state_: S, **kwargs) -> S:


def on_state(
function: Optional[Callable] = None, input_mapping: Dict = {} ,output: Optional[Sequence[str]] = None
function: Optional[Callable] = None,
input_mapping: Dict = {},
output: Optional[Sequence[str]] = None,
):
"""Decorator (factory) to make target `function` into a function on a `State` and `**kwargs`.
Expand Down

0 comments on commit 2fa53fd

Please sign in to comment.