mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 21:42:25 +08:00
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.
This commit is contained in:
committed by
Jelle Zijlstra
parent
df65f6ea15
commit
ef87943397
4
third_party/2and3/click/decorators.pyi
vendored
4
third_party/2and3/click/decorators.pyi
vendored
@@ -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:
|
||||
...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user