From a2315bb53245b8d9cfa0d634b0db4ea687de1af1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 5 Aug 2025 12:57:42 +0100 Subject: [PATCH] Backport PR #3337: chore: update pre-commit hooks --- .pre-commit-config.yaml | 4 ++-- src/zarr/api/asynchronous.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 97aefca6dd..9f91c709c7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ ci: default_stages: [pre-commit, pre-push] repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.2 + rev: v0.12.7 hooks: - id: ruff-check args: ["--fix", "--show-fixes"] @@ -22,7 +22,7 @@ repos: - id: check-yaml - id: trailing-whitespace - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.16.1 + rev: v1.17.1 hooks: - id: mypy files: src|tests diff --git a/src/zarr/api/asynchronous.py b/src/zarr/api/asynchronous.py index 9a380082b0..dee96ffdee 100644 --- a/src/zarr/api/asynchronous.py +++ b/src/zarr/api/asynchronous.py @@ -141,7 +141,7 @@ def _like_args(a: ArrayLike, kwargs: dict[str, Any]) -> dict[str, Any]: else: # TODO: Remove type: ignore statement when type inference improves. # mypy cannot correctly infer the type of a.metadata here for some reason. - new["codecs"] = a.metadata.codecs # type: ignore[unreachable] + new["codecs"] = a.metadata.codecs else: # TODO: set default values compressor/codecs