summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-07-04 06:43:45 -0700
committerDavid Lord <davidism@gmail.com>2021-07-04 06:43:45 -0700
commit18070584fc0bd34925092b15af3381e9605b5517 (patch)
tree2f69897f3c8499125f2d18d0a6eacdb71c581d72
parent8967b81b69958c4607a72769c38dbda80d6d7606 (diff)
downloadclick-18070584fc0bd34925092b15af3381e9605b5517.tar.gz
fix type for show_default, can be str
-rw-r--r--src/click/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/click/core.py b/src/click/core.py
index ea5215f..34fae4b 100644
--- a/src/click/core.py
+++ b/src/click/core.py
@@ -2461,7 +2461,7 @@ class Option(Parameter):
def __init__(
self,
param_decls: t.Optional[t.Sequence[str]] = None,
- show_default: bool = False,
+ show_default: t.Union[bool, str] = False,
prompt: t.Union[bool, str] = False,
confirmation_prompt: t.Union[bool, str] = False,
prompt_required: bool = True,