From 0cb247e96fcf8df6939adaa52f2ea9142b8cfb9e Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Fri, 3 Mar 2017 19:16:13 +0000 Subject: [PATCH] correct version_option arguments in click (#966) --- third_party/3.6/click/decorators.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/third_party/3.6/click/decorators.pyi b/third_party/3.6/click/decorators.pyi index a3dcdddeb..9f1c1da42 100644 --- a/third_party/3.6/click/decorators.pyi +++ b/third_party/3.6/click/decorators.pyi @@ -1,3 +1,4 @@ +from distutils.version import Version from typing import Any, Callable, Dict, List, TypeVar, Union from click.core import Command, Group, Argument, Option, Parameter, Context @@ -163,10 +164,11 @@ def password_option( # Defaults copied from the decorator body. def version_option( - version: str = None, + version: Union[str, Version] = None, *param_decls: str, cls: type = Option, # Option + prog_name: str = None, show_default: bool = False, prompt: bool = False, confirmation_prompt: bool = False,