From 158ccf6d2fa5ee046515a5a49fd4d48eb70668c6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 6 Oct 2026 00:48:44 +0000 Subject: [PATCH 1/2] ci(pre-commit.ci): autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/adhtruong/mirrors-typos: v1.50.1 → v1.50.3](https://github.com/adhtruong/mirrors-typos/compare/v1.50.1...v1.50.3) - [github.com/astral-sh/ruff-pre-commit: v0.16.6 → v0.16.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.16.6...v0.16.10) - [github.com/pre-commit/mirrors-mypy: v2.3.1 → v2.4.0](https://github.com/pre-commit/mirrors-mypy/compare/v2.3.1...v2.4.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b396a4cf..c140189f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,20 +20,20 @@ repos: - id: validate-pyproject - repo: https://github.com/adhtruong/mirrors-typos - rev: v1.50.1 + rev: v1.50.3 hooks: - id: typos args: [--force-exclude] # omitting --write-changes - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.16.6 + rev: v0.16.10 hooks: - id: ruff-check args: [--fix, --unsafe-fixes] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v2.3.1 + rev: v2.4.0 hooks: - id: mypy files: "^src/" From 68b053db2749612d0bb6e22d4e8bba0c0a1d6058 Mon Sep 17 00:00:00 2001 From: Gabriel Selzer Date: Tue, 6 Oct 2026 12:57:40 -0500 Subject: [PATCH 2/2] Fix typing errors --- src/ndv/models/_data_wrapper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ndv/models/_data_wrapper.py b/src/ndv/models/_data_wrapper.py index 91112328..e968b833 100644 --- a/src/ndv/models/_data_wrapper.py +++ b/src/ndv/models/_data_wrapper.py @@ -43,11 +43,11 @@ def shape(self) -> tuple[int, ...]: ... ArrayT = TypeVar("ArrayT") NPArrayLike = TypeVar("NPArrayLike", bound=SupportsIndexing) -_T = TypeVar("_T", bound=type) +_T = TypeVar("_T") logger = logging.getLogger("ndv") -def _recurse_subclasses(cls: _T) -> Iterator[_T]: +def _recurse_subclasses(cls: type[_T]) -> Iterator[type[_T]]: for subclass in cls.__subclasses__(): yield subclass yield from _recurse_subclasses(subclass)