From fa28cc24d3ff58ca1c6607eaea40934a75da2381 Mon Sep 17 00:00:00 2001 From: David Tucker Date: Thu, 17 Oct 2019 20:12:11 -0700 Subject: [PATCH] Fix show_default type in click.option signatures --- third_party/2and3/click/decorators.pyi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/third_party/2and3/click/decorators.pyi b/third_party/2and3/click/decorators.pyi index 04787749f253..2df9506acf7a 100644 --- a/third_party/2and3/click/decorators.pyi +++ b/third_party/2and3/click/decorators.pyi @@ -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 = ...,