diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4ff503c..fbb54c8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: check-yaml - id: detect-private-key - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.25.1" + rev: "v2.26.0" hooks: - id: pyproject-fmt - repo: https://github.com/citation-file-format/cffconvert @@ -17,7 +17,7 @@ repos: hooks: - id: validate-cff - repo: https://github.com/codespell-project/codespell - rev: v2.4.2 + rev: v2.4.3 hooks: - id: codespell exclude: | @@ -39,7 +39,7 @@ repos: - id: yamllint exclude: pre-commit-config.yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.20" + rev: "v0.16.0" hooks: - id: ruff-format - id: ruff-check diff --git a/pyproject.toml b/pyproject.toml index ecfc7b6..690ce0b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -119,7 +119,7 @@ lint.select = [ "W", ] # ignore various rules for all -lint.per-file-ignores."*" = [ "ANN401", "C901", "PLC0415", "PLR0912", "PLR0913", "PLR0915", "PLR2004" ] +lint.per-file-ignores."*" = [ "ANN401", "C901", "PLC0415", "PLR0912", "PLR0913", "PLR0915", "PLR0917", "PLR2004" ] # Ignore `F401` (unused imports) for `__init__.py` file lint.per-file-ignores."__init__.py" = [ "F401" ] # ignore docstring presence checks for docs diff --git a/src/ome_arrow/tensor.py b/src/ome_arrow/tensor.py index 0272e69..f963eab 100644 --- a/src/ome_arrow/tensor.py +++ b/src/ome_arrow/tensor.py @@ -139,14 +139,14 @@ def with_layout(self, layout: str) -> "LazyTensorView": def select( self, *, - t: int | slice | Sequence[int] | None | _Unset = _UNSET, - z: int | slice | Sequence[int] | None | _Unset = _UNSET, - c: int | slice | Sequence[int] | None | _Unset = _UNSET, - roi: tuple[int, int, int, int] | None | _Unset = _UNSET, - roi3d: tuple[int, int, int, int, int, int] | None | _Unset = _UNSET, - roi_nd: tuple[int, ...] | None | _Unset = _UNSET, - roi_type: Literal["2d", "2d_timelapse", "3d", "4d"] | None | _Unset = _UNSET, - tile: tuple[int, int] | None | _Unset = _UNSET, + t: int | slice | Sequence[int] | _Unset | None = _UNSET, + z: int | slice | Sequence[int] | _Unset | None = _UNSET, + c: int | slice | Sequence[int] | _Unset | None = _UNSET, + roi: tuple[int, int, int, int] | _Unset | None = _UNSET, + roi3d: tuple[int, int, int, int, int, int] | _Unset | None = _UNSET, + roi_nd: tuple[int, ...] | _Unset | None = _UNSET, + roi_type: Literal["2d", "2d_timelapse", "3d", "4d"] | _Unset | None = _UNSET, + tile: tuple[int, int] | _Unset | None = _UNSET, ) -> "LazyTensorView": """Return a new lazy plan with updated index/ROI selections.""" updates = {}