8000 Add stubs for click-default-group by pyhedgehog · Pull Request #9304 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Add stubs for click-default-group #9304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jul 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixes
  • Loading branch information
AlexWaygood authored Jul 22, 2023
commit 6f1489c4da6735b62050e28867c62b96d2c8c25e
6 changes: 3 additions & 3 deletions stubs/click-default-group/click_default_group.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ __version__: str

class DefaultGroup(click.Group):
ignore_unknown_options: bool
default_cmd_name: str
default_cmd_name: str | None
default_if_no_args: bool
def __init__(self, *args, **kwargs) -> None: ...
def set_default_command(self, command: str) -> None: ...
def set_default_command(self, command: click.Command) -> None: ...
def parse_args(self, ctx: click.Context, args: list[str]) -> list[str]: ...
def get_command(self, ctx: click.Context, cmd_name: str) -> click.Command | None: ...
def resolve_command(self, ctx: click.Context, args: list[str]) -> tuple[str | None, click.Command | None, list[str]]: ...
Expand All @@ -22,7 +22,7 @@ class DefaultCommandFormatter:
formatter: click.HelpFormatter
mark: str
def __init__(self, group: click.Group, formatter: click.HelpFormatter, mark: str = ...) -> None: ...
def write_dl(self, rows: t.Sequence[tuple[str, str]], col_max: int = ..., col_spacing: int = ...) -> None: ...
def write_dl(self, rows: t.Sequence[tuple[str, str]], col_max: int = 30, col_spacing: int = -2) -> None: ...
def __getattr__(self, attr: str) -> Incomplete: ...
# __getattr__ used to ala-derive from click.HelpFormatter:
# indent_increment: int
Expand Down
0