Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions metaflow/user_decorators/user_step_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,10 +574,13 @@ def start(self):
- a callable that will replace whatever is being wrapped (it
should have the same parameters as the wrapped function, namely, it should
be a
Callable[[FlowSpec, Inputs], Optional[Union[Dict[str, Any]]]]).
Callable[[FlowSpec, Inputs], Optional[Union[Dict[str, Any], bool]]]).
Note that the return type is a bit different -- you can return:
- None: no special behavior;
- None or False: no special behavior, your callable called `self.next()` as
usual.
- A dictionary containing parameters for `self.next()`.
- True to instruct Metaflow to call the `self.next()` statement that
would have been called normally by the step function you replaced.
- a dictionary to skip the step. An empty dictionary is equivalent
to just skipping the step. A full dictionary will pass the arguments
to the `self.next()` call -- this allows you to modify the behavior
Expand Down
Loading