Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix show_default type in click.option signatures #3385

Merged
merged 1 commit into from
Oct 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions third_party/2and3/click/decorators.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def option(
*param_decls: str,
cls: Type[Option] = ...,
# Option
show_default: bool = ...,
show_default: Union[bool, Text] = ...,
prompt: Union[bool, Text] = ...,
confirmation_prompt: bool = ...,
hide_input: bool = ...,
Expand Down Expand Up @@ -126,7 +126,7 @@ def option(
*param_decls: str,
cls: Type[Option] = ...,
# Option
show_default: bool = ...,
show_default: Union[bool, Text] = ...,
prompt: Union[bool, Text] = ...,
confirmation_prompt: bool = ...,
hide_input: bool = ...,
Expand Down Expand Up @@ -158,7 +158,7 @@ def option(
*param_decls: str,
cls: Type[Option] = ...,
# Option
show_default: bool = ...,
show_default: Union[bool, Text] = ...,
prompt: Union[bool, Text] = ...,
confirmation_prompt: bool = ...,
hide_input: bool = ...,
Expand Down Expand Up @@ -190,7 +190,7 @@ def option(
*param_decls: str,
cls: Type[Option] = ...,
# Option
show_default: bool = ...,
show_default: Union[bool, Text] = ...,
prompt: Union[bool, Text] = ...,
confirmation_prompt: bool = ...,
hide_input: bool = ...,
Expand Down Expand Up @@ -221,7 +221,7 @@ def confirmation_option(
*param_decls: str,
cls: Type[Option] = ...,
# Option
show_default: bool = ...,
show_default: Union[bool, Text] = ...,
prompt: Union[bool, Text] = ...,
confirmation_prompt: bool = ...,
hide_input: bool = ...,
Expand Down Expand Up @@ -249,7 +249,7 @@ def password_option(
*param_decls: str,
cls: Type[Option] = ...,
# Option
show_default: bool = ...,
show_default: Union[bool, Text] = ...,
prompt: Union[bool, Text] = ...,
confirmation_prompt: bool = ...,
hide_input: bool = ...,
Expand Down Expand Up @@ -280,7 +280,7 @@ def version_option(
# Option
prog_name: Optional[str] = ...,
message: Optional[str] = ...,
show_default: bool = ...,
show_default: Union[bool, Text] = ...,
prompt: Union[bool, Text] = ...,
confirmation_prompt: bool = ...,
hide_input: bool = ...,
Expand Down Expand Up @@ -308,7 +308,7 @@ def help_option(
*param_decls: str,
cls: Type[Option] = ...,
# Option
show_default: bool = ...,
show_default: Union[bool, Text] = ...,
prompt: Union[bool, Text] = ...,
confirmation_prompt: bool = ...,
hide_input: bool = ...,
Expand Down