mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 04:52:23 +08:00
Fix show_default type in click.option signatures (#3385)
This commit is contained in:
committed by
Sebastian Rittau
parent
966f8d24e6
commit
38fbdc9490
16
third_party/2and3/click/decorators.pyi
vendored
16
third_party/2and3/click/decorators.pyi
vendored
@@ -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 = ...,
|
||||
@@ -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 = ...,
|
||||
@@ -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 = ...,
|
||||
@@ -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 = ...,
|
||||
@@ -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 = ...,
|
||||
@@ -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 = ...,
|
||||
@@ -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 = ...,
|
||||
@@ -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 = ...,
|
||||
|
||||
Reference in New Issue
Block a user