Skip to content

Commit

Permalink
Allow users to pass a list of values as varargs to click API (#2330)
Browse files Browse the repository at this point in the history
  • Loading branch information
talsperre authored Mar 4, 2025
1 parent 232de81 commit 3946850
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion metaflow/runner/click_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,11 @@ def get_inspect_param_obj(p: Union[click.Argument, click.Option], kind: str):
default=inspect.Parameter.empty if is_vararg else p.default,
annotation=annotation,
),
Optional[TTuple[annotation]] if is_vararg else annotation,
(
Optional[Union[TTuple[annotation], List[annotation]]]
if is_vararg
else annotation
),
)


Expand Down

0 comments on commit 3946850

Please sign in to comment.