add autocomplete to click decorators (#2705)

This commit is contained in:
Max Rydahl Andersen authored and Jelle Zijlstra committed 2019-05-06 22:05:48 -04:00
1 parent a6d92eca10
commit 5dda362b05
1 file changed
+3 -2
+3 -2
View File
@@ -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]:
...