Hi. What should be the type annotation of `inputs`...
# ask-metaflow
p
Hi. What should be the type annotation of
inputs
for steps that join
foreach
outcomes? I have mypy complaining about it:
error: Function is missing a type annotation for one or more arguments  [no-untyped-def]
function:
Copy code
@step
def join_something(self, inputs) -> None:
    self.merge_artifacts(inputs)

    self.next(self.run_something_else)
v
good point. It's this `Inputs` object, which we should include in the public docs
it supports iteration, looking up by index, and looking up by step name, which is useful with static names branches, so you can do
inputs.branch_a.x
and
inputs.branch_b.x