Skip to content

Commit

Permalink
Updated pre-commit modules
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Nov 2, 2024
1 parent 889ad53 commit 750286e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
Expand All @@ -14,14 +14,14 @@ repos:
- id: trailing-whitespace

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

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
rev: v1.13.0
hooks:
- id: mypy
additional_dependencies: [ "typing_extensions" ]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ ignore = [
]

[tool.mypy]
python_version = "3.9"
python_version = "3.11"
strict = true
pretty = true

Expand Down
2 changes: 1 addition & 1 deletion src/typeguard/_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def typechecked(
) = None
if isinstance(target, (classmethod, staticmethod)):
wrapper_class = target.__class__
target = target.__func__
target = target.__func__ # type: ignore[assignment]

retval = instrument(target)
if isinstance(retval, str):
Expand Down

0 comments on commit 750286e

Please sign in to comment.