diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0affeee..69e006b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ repos: - id: trailing-whitespace - id: no-commit-to-branch - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.8 + rev: v0.15.9 hooks: - id: ruff-check args: [--fix, --exit-non-zero-on-fix] @@ -14,15 +14,15 @@ repos: args: [--preview, --select=CPY] - id: ruff-format - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.20.0 + rev: v2.21.0 hooks: - id: pyproject-fmt - repo: https://github.com/biomejs/pre-commit - rev: v2.4.9 + rev: v2.4.10 hooks: - id: biome-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.19.1 + rev: v1.20.0 hooks: - id: mypy args: [--config-file=pyproject.toml, .] diff --git a/src/fast_array_utils/stats/_utils.py b/src/fast_array_utils/stats/_utils.py index bc1f650..fe062c2 100644 --- a/src/fast_array_utils/stats/_utils.py +++ b/src/fast_array_utils/stats/_utils.py @@ -90,7 +90,7 @@ def _normalize_axis(axis: ComplexAxis, ndim: int) -> Literal[0, 1] | None: case (0, 1) | (1, 0): axis = None case _: # pragma: no cover - raise AxisError(axis, ndim) # type: ignore[call-overload] + raise AxisError(axis, ndim) if axis == 0 and ndim == 1: return None # dask’s aggregate doesn’t know we don’t accept `axis=0` for 1D arrays return axis