From ef8794339770952f5ff6db1f68bcebe0823771b2 Mon Sep 17 00:00:00 2001 From: Dan Sully Date: Wed, 7 Mar 2018 10:32:55 -0800 Subject: [PATCH] Update click.option to allow for user defined kwargs. (#1950) Click's option decorator can take a cls= argument, which allows that class to parse arbitrary arguments from the decorator. --- third_party/2and3/click/decorators.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/third_party/2and3/click/decorators.pyi b/third_party/2and3/click/decorators.pyi index 46f19181c..4c388dd91 100644 --- a/third_party/2and3/click/decorators.pyi +++ b/third_party/2and3/click/decorators.pyi @@ -109,7 +109,9 @@ def option( metavar: Optional[str] = ..., expose_value: bool = ..., is_eager: bool = ..., - envvar: Optional[Union[str, List[str]]] = ... + envvar: Optional[Union[str, List[str]]] = ..., + # User-defined + **kwargs: Any, ) -> _Decorator: ...