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] 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]``.