From 66a24a9aaec321b13360246b04b400ab221fae1b Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 19 Mar 2024 00:13:35 +0800 Subject: [PATCH] :bug: missing `default_factory` in `Argument` overloads --- typer/params.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/typer/params.py b/typer/params.py index a143f3f749..ac277213f8 100644 --- a/typer/params.py +++ b/typer/params.py @@ -268,6 +268,7 @@ def Argument( ] ] = None, autocompletion: Optional[Callable[..., Any]] = None, + default_factory: Optional[Callable[[], Any]] = None, # Custom type parser: Optional[Callable[[str], Any]] = None, # TyperArgument @@ -322,6 +323,7 @@ def Argument( ] ] = None, autocompletion: Optional[Callable[..., Any]] = None, + default_factory: Optional[Callable[[], Any]] = None, # Custom type click_type: Optional[click.ParamType] = None, # TyperArgument