diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 320d79a..02f80cf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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" ] diff --git a/pyproject.toml b/pyproject.toml index 9591049..7c89494 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -94,7 +94,7 @@ ignore = [ ] [tool.mypy] -python_version = "3.9" +python_version = "3.11" strict = true pretty = true diff --git a/src/typeguard/_decorators.py b/src/typeguard/_decorators.py index 1d171ec..a6c20cb 100644 --- a/src/typeguard/_decorators.py +++ b/src/typeguard/_decorators.py @@ -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):