Skip to content

Commit

Permalink
missed one docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jernejfrank committed Sep 28, 2024
1 parent 9c58a46 commit 754964f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hamilton/function_modifiers/macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,15 @@ def __init__(
_chain: bool = False,
**mutating_function_kwargs: Union[SingleDependency, Any],
):
"""Instantiates a `@mutate` decorator.
We assume the first argument of the decorated function to be the output of the function we are targeting.
:param target_functions: functions we wish to mutate the output of
:param collapse: Whether to collapse this into a single node. This is not currently supported.
:param _chain: Whether to chain the first parameter. This is the only mode that is supported. Furthermore, this is not externally exposed. @flow will make use of this.
:param **mutating_function_kwargs: other kwargs that the decorated function has
"""
self.collapse = collapse
self.chain = _chain
# keeping it here once it gets implemented maybe nice to have options
Expand Down

0 comments on commit 754964f

Please sign in to comment.