From 767654359a0010d2980b9f91962c28af4b5e2516 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 19:32:33 +0000 Subject: [PATCH 1/2] chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.16.0 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0466b10..19bea3d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -55,7 +55,7 @@ repos: - id: prettier args: ["--tab-width", "2"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.22 + rev: v0.16.0 hooks: - id: ruff-check args: [--fix, --exit-non-zero-on-fix] From 2b60a7945bcc9e35f7111b798f66a2319f26bfaf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2026 19:33:00 +0000 Subject: [PATCH 2/2] chore(pre-commit.ci): auto fixes --- src/array_api/_2022_12.py | 2 +- src/array_api/_2023_12.py | 2 +- src/array_api/_2024_12.py | 2 +- src/array_api/_2025_12.py | 2 +- src/array_api/_draft.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/array_api/_2022_12.py b/src/array_api/_2022_12.py index 1875f80..7200fba 100644 --- a/src/array_api/_2022_12.py +++ b/src/array_api/_2022_12.py @@ -543,7 +543,7 @@ def __ge__(self, other: int | float | Self, /) -> Self: """ ... - def __getitem__(self, key: int | slice | ellipsis | None | tuple[int | slice | ellipsis | None, ...] | Self, /) -> Self: + def __getitem__(self, key: int | slice | ellipsis | tuple[int | slice | ellipsis | None, ...] | Self | None, /) -> Self: """ Returns ``self[key]``. diff --git a/src/array_api/_2023_12.py b/src/array_api/_2023_12.py index d0ad16d..51690de 100644 --- a/src/array_api/_2023_12.py +++ b/src/array_api/_2023_12.py @@ -699,7 +699,7 @@ def __ge__(self, other: int | float | Self, /) -> Self: """ ... - def __getitem__(self, key: int | slice | ellipsis | None | tuple[int | slice | ellipsis | None, ...] | Self, /) -> Self: + def __getitem__(self, key: int | slice | ellipsis | tuple[int | slice | ellipsis | None, ...] | Self | None, /) -> Self: """ Returns ``self[key]``. diff --git a/src/array_api/_2024_12.py b/src/array_api/_2024_12.py index 96edc7c..f1557da 100644 --- a/src/array_api/_2024_12.py +++ b/src/array_api/_2024_12.py @@ -706,7 +706,7 @@ def __ge__(self, other: int | float | Self, /) -> Self: """ ... - def __getitem__(self, key: int | slice | ellipsis | None | tuple[int | slice | ellipsis | Self | None, ...] | Self, /) -> Self: + def __getitem__(self, key: int | slice | ellipsis | tuple[int | slice | ellipsis | Self | None, ...] | Self | None, /) -> Self: """ Returns ``self[key]``. diff --git a/src/array_api/_2025_12.py b/src/array_api/_2025_12.py index 71b6a9d..e311777 100644 --- a/src/array_api/_2025_12.py +++ b/src/array_api/_2025_12.py @@ -706,7 +706,7 @@ def __ge__(self, other: int | float | Self, /) -> Self: """ ... - def __getitem__(self, key: int | slice | ellipsis | None | tuple[int | slice | ellipsis | Self | None, ...] | Self, /) -> Self: + def __getitem__(self, key: int | slice | ellipsis | tuple[int | slice | ellipsis | Self | None, ...] | Self | None, /) -> Self: """ Returns ``self[key]``. diff --git a/src/array_api/_draft.py b/src/array_api/_draft.py index 71b6a9d..e311777 100644 --- a/src/array_api/_draft.py +++ b/src/array_api/_draft.py @@ -706,7 +706,7 @@ def __ge__(self, other: int | float | Self, /) -> Self: """ ... - def __getitem__(self, key: int | slice | ellipsis | None | tuple[int | slice | ellipsis | Self | None, ...] | Self, /) -> Self: + def __getitem__(self, key: int | slice | ellipsis | tuple[int | slice | ellipsis | Self | None, ...] | Self | None, /) -> Self: """ Returns ``self[key]``.