fix(stubs/click): add the no_args_is_help argument annotaion for click (#5198)

This commit is contained in:
Jason Huang
2021-04-10 23:33:17 +08:00
committed by GitHub
parent e26971a082
commit 087435ca65
2 changed files with 3 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ class Command(BaseCommand):
short_help: Optional[str]
options_metavar: str
add_help_option: bool
no_args_is_help: bool
hidden: bool
deprecated: bool
def __init__(
@@ -132,6 +133,7 @@ class Command(BaseCommand):
short_help: Optional[str] = ...,
options_metavar: str = ...,
add_help_option: bool = ...,
no_args_is_help: bool = ...,
hidden: bool = ...,
deprecated: bool = ...,
) -> None: ...

View File

@@ -28,6 +28,7 @@ def command(
short_help: Optional[str] = ...,
options_metavar: str = ...,
add_help_option: bool = ...,
no_args_is_help: bool = ...,
hidden: bool = ...,
deprecated: bool = ...,
) -> Callable[[Callable[..., Any]], Command]: ...