Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 7, 2023
1 parent 2d2df7e commit 88ac813
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shtab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,8 @@ def complete(parser: ArgumentParser, shell: str = "bash", root_prefix: Opt[str]
)


def completion_action(parent: Opt[ArgumentParser] = None, preamble: Union[str, Dict[str, str]] = ""):
def completion_action(parent: Opt[ArgumentParser] = None, preamble: Union[str, Dict[str,
str]] = ""):
class PrintCompletionAction(_ShtabPrintCompletionAction):
def __call__(self, parser, namespace, values, option_string=None):
print(complete(parent or parser, values, preamble=preamble))
Expand Down

0 comments on commit 88ac813

Please sign in to comment.