Skip to content

Commit

Permalink
Merge pull request #149 from iterative/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
casperdcl authored Sep 7, 2023
2 parents 2a7af72 + 9f22755 commit 4196b56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:
types: [text]
exclude: ^(.pre-commit-config.yaml|.github/workflows/test.yml)$
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 6.1.0
hooks:
- id: flake8
args: [-j8]
Expand All @@ -40,7 +40,7 @@ repos:
- flake8-pyproject
- flake8-string-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
rev: v1.5.1
hooks:
- id: mypy
additional_dependencies: [types-setuptools]
Expand Down
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 4196b56

Please sign in to comment.