mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 16:27:08 +08:00
Add hidden and deprecated click.Command options (#2778)
This commit is contained in:
committed by
Sebastian Rittau
parent
3eb66ba633
commit
c45c0635c1
6
third_party/2and3/click/core.pyi
vendored
6
third_party/2and3/click/core.pyi
vendored
@@ -189,6 +189,8 @@ class Command(BaseCommand):
|
||||
short_help: Optional[str]
|
||||
options_metavar: str
|
||||
add_help_option: bool
|
||||
hidden: bool
|
||||
deprecated: bool
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -200,7 +202,9 @@ class Command(BaseCommand):
|
||||
epilog: Optional[str] = ...,
|
||||
short_help: Optional[str] = ...,
|
||||
options_metavar: str = ...,
|
||||
add_help_option: bool = ...
|
||||
add_help_option: bool = ...,
|
||||
hidden: bool = ...,
|
||||
deprecated: bool = ...,
|
||||
) -> None:
|
||||
...
|
||||
|
||||
|
||||
4
third_party/2and3/click/decorators.pyi
vendored
4
third_party/2and3/click/decorators.pyi
vendored
@@ -41,6 +41,8 @@ def command(
|
||||
short_help: Optional[str] = ...,
|
||||
options_metavar: str = ...,
|
||||
add_help_option: bool = ...,
|
||||
hidden: bool = ...,
|
||||
deprecated: bool = ...,
|
||||
) -> Callable[[Callable], Command]:
|
||||
...
|
||||
|
||||
@@ -64,6 +66,8 @@ def group(
|
||||
short_help: Optional[str] = ...,
|
||||
options_metavar: str = ...,
|
||||
add_help_option: bool = ...,
|
||||
hidden: bool = ...,
|
||||
deprecated: bool = ...,
|
||||
# User-defined
|
||||
**kwargs: Any,
|
||||
) -> Callable[[Callable], Group]:
|
||||
|
||||
Reference in New Issue
Block a user