Skip to content

Commit

Permalink
Fixes mypy pre-commit checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Aug 7, 2024
1 parent ff3f72a commit f7d0909
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ repos:
- id: mypy
args: [--no-strict-optional, --ignore-missing-imports]
additional_dependencies: ["pydantic>2.0", "toml"]
exclude: |
(?x)^(
test.*
)$
- repo: https://github.com/jsh9/pydoclint
rev: 0.5.6
hooks:
Expand Down
2 changes: 1 addition & 1 deletion bumpversion/aliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AliasedGroup(RichGroup):
If there were a command called ``push``, it would accept ``pus`` as an alias (so long as it was unique)
"""

def get_command(self, ctx: Context, cmd_name: str) -> Optional[click.Command]:
def get_command(self, ctx: Context, cmd_name: str) -> Optional[click.Command]: # type: ignore[return]
"""Given a context and a command name, this returns a Command object if it exists or returns None."""
rv = click.Group.get_command(self, ctx, cmd_name)
if rv is not None:
Expand Down

0 comments on commit f7d0909

Please sign in to comment.