Skip to content

Commit

Permalink
🐛 Add missing default_factory in Argument overloads (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
m9810223 authored Mar 23, 2024
1 parent fa5a649 commit 14ee8f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions typer/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 14ee8f1

Please sign in to comment.