Skip to content

Commit

Permalink
Expand show_default type hint for Option to include str
Browse files Browse the repository at this point in the history
  • Loading branch information
plannigan committed Nov 15, 2022
1 parent e3f7467 commit 5b02ed4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion typer/models.py
Expand Up @@ -278,7 +278,7 @@ def __init__(
] = None,
autocompletion: Optional[Callable[..., Any]] = None,
# Option
show_default: bool = True,
show_default: Union[bool, str] = True,
prompt: Union[bool, str] = False,
confirmation_prompt: bool = False,
prompt_required: bool = True,
Expand Down
2 changes: 1 addition & 1 deletion typer/params.py
Expand Up @@ -25,7 +25,7 @@ def Option(
] = None,
autocompletion: Optional[Callable[..., Any]] = None,
# Option
show_default: bool = True,
show_default: Union[bool, str] = True,
prompt: Union[bool, str] = False,
confirmation_prompt: bool = False,
prompt_required: bool = True,
Expand Down

0 comments on commit 5b02ed4

Please sign in to comment.