diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b4ad6054..8a712ad4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,12 +2,12 @@ ci: autoupdate_schedule: monthly repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.4 + rev: v0.15.9 hooks: - id: ruff - id: ruff-format - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.37.0 + rev: 0.37.1 hooks: - id: check-github-workflows - id: check-readthedocs @@ -17,11 +17,11 @@ repos: - id: blacken-docs additional_dependencies: [black==24.10.0] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.19.1 + rev: v1.20.0 hooks: - id: mypy additional_dependencies: ["marshmallow>=3.24.1,<5", "types-PyYAML"] - repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.10.9 + rev: 0.11.3 hooks: - id: uv-lock diff --git a/src/apispec/core.py b/src/apispec/core.py index 89445d89..758ab163 100644 --- a/src/apispec/core.py +++ b/src/apispec/core.py @@ -698,7 +698,7 @@ def _process_links( operation_id = ( self._paths.get(route, {}).get(method.lower(), {}).get("operationId") ) - link_obj = ( + link_obj: dict[str, typing.Any] = ( {"operationId": operation_id} if operation_id else {