Skip to content

[pre-commit.ci] pre-commit autoupdate #520

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.11.4
hooks:
- id: ruff
args: [--fix, --show-fixes]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
rev: v1.15.0
hooks:
- id: mypy
additional_dependencies: [ "typing_extensions" ]
Expand Down
6 changes: 3 additions & 3 deletions src/typeguard/_checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def check_callable(
if unfulfilled_kwonlyargs:
raise TypeCheckError(
f"has mandatory keyword-only arguments in its declaration: "
f'{", ".join(unfulfilled_kwonlyargs)}'
f"{', '.join(unfulfilled_kwonlyargs)}"
)

num_positional_args = num_mandatory_pos_args = 0
Expand Down Expand Up @@ -550,7 +550,7 @@ def check_typevar(
get_type_name(constraint) for constraint in origin_type.__constraints__
)
raise TypeCheckError(
f"does not match any of the constraints " f"({formatted_constraints})"
f"does not match any of the constraints ({formatted_constraints})"
)


Expand Down Expand Up @@ -1066,7 +1066,7 @@ def load_plugins() -> None:
plugin = ep.load()
except Exception as exc:
warnings.warn(
f"Failed to load plugin {ep.name!r}: " f"{qualified_name(exc)}: {exc}",
f"Failed to load plugin {ep.name!r}: {qualified_name(exc)}: {exc}",
stacklevel=2,
)
continue
Expand Down
Loading