mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
add autocomplete to click decorators (#2705)
This commit is contained in:
committed by
Jelle Zijlstra
parent
a6d92eca10
commit
5dda362b05
5
third_party/2and3/click/decorators.pyi
vendored
5
third_party/2and3/click/decorators.pyi
vendored
@@ -1,5 +1,5 @@
|
||||
from distutils.version import Version
|
||||
from typing import Any, Callable, Dict, List, Optional, Type, TypeVar, Union, Text, overload
|
||||
from typing import Any, Callable, Dict, List, Optional, Tuple, Type, TypeVar, Union, Text, overload
|
||||
|
||||
from click.core import Command, Group, Argument, Option, Parameter, Context, _ConvertibleType
|
||||
|
||||
@@ -87,7 +87,8 @@ def argument(
|
||||
metavar: Optional[str] = ...,
|
||||
expose_value: bool = ...,
|
||||
is_eager: bool = ...,
|
||||
envvar: Optional[Union[str, List[str]]] = ...
|
||||
envvar: Optional[Union[str, List[str]]] = ...,
|
||||
autocompletion: Optional[Callable[[Any, List[str], str], List[Union[str, Tuple[str, str]]]]] = ...,
|
||||
) -> Callable[[_F], _F]:
|
||||
...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user