Skip to content

Drop Python 3.9 support #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions array_api_strict/_array_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
from __future__ import annotations

import operator
import sys
from collections.abc import Iterator
from enum import IntEnum
from types import ModuleType
from typing import TYPE_CHECKING, Any, Final, Literal, SupportsIndex
from types import EllipsisType, ModuleType
from typing import Any, Final, Literal, SupportsIndex

import numpy as np
import numpy.typing as npt
Expand All @@ -43,13 +42,6 @@
from ._flags import get_array_api_strict_flags, set_array_api_strict_flags
from ._typing import PyCapsule

if sys.version_info >= (3, 10):
from types import EllipsisType
elif TYPE_CHECKING:
from typing_extensions import EllipsisType
else:
EllipsisType = type(Ellipsis)


class Device:
_device: Final[str]
Expand Down
2 changes: 0 additions & 2 deletions array_api_strict/_data_type_functions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from dataclasses import dataclass

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions array_api_strict/_dtypes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import builtins
import warnings
from typing import Any, Final
Expand Down
2 changes: 0 additions & 2 deletions array_api_strict/_elementwise_functions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import numpy as np

from ._array_object import Array
Expand Down
2 changes: 0 additions & 2 deletions array_api_strict/_fft.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from collections.abc import Sequence
from typing import Literal

Expand Down
12 changes: 2 additions & 10 deletions array_api_strict/_flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,16 @@
library will only support one particular configuration of these flags.

"""

from __future__ import annotations

import functools
import os
import warnings
from collections.abc import Callable
from types import TracebackType
from typing import TYPE_CHECKING, Any, Collection, TypeVar, cast
from typing import Any, Collection, ParamSpec, TypeVar, cast

import array_api_strict

if TYPE_CHECKING:
# TODO import from typing (requires Python >= 3.10)
from typing_extensions import ParamSpec

P = ParamSpec("P")

P = ParamSpec("P")
T = TypeVar("T")
_CallableT = TypeVar("_CallableT", bound=Callable[..., object])

Expand Down
2 changes: 0 additions & 2 deletions array_api_strict/_helpers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""Private helper routines."""

from __future__ import annotations

from ._array_object import Array
from ._dtypes import _dtype_categories
from ._flags import get_array_api_strict_flags
Expand Down
2 changes: 0 additions & 2 deletions array_api_strict/_indexing_functions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import numpy as np

from ._array_object import Array
Expand Down
2 changes: 0 additions & 2 deletions array_api_strict/_info.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import numpy as np

from . import _dtypes as dt
Expand Down
2 changes: 0 additions & 2 deletions array_api_strict/_linalg.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from collections.abc import Sequence
from functools import partial
from typing import Literal, NamedTuple
Expand Down
3 changes: 0 additions & 3 deletions array_api_strict/_linear_algebra_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
linalg extension is disabled in the flags.

"""

from __future__ import annotations

from collections.abc import Sequence

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions array_api_strict/_manipulation_functions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import numpy as np

from ._array_object import Array
Expand Down
2 changes: 0 additions & 2 deletions array_api_strict/_searching_functions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Literal

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions array_api_strict/_set_functions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import NamedTuple

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions array_api_strict/_sorting_functions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Literal

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions array_api_strict/_statistical_functions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Any

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions array_api_strict/_utility_functions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

from typing import Any

import numpy as np
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "array_api_strict"
dynamic = ["version"]
requires-python = ">= 3.9"
requires-python = ">= 3.10"
dependencies = ["numpy"]
license = {file = "LICENSE"}
authors = [
Expand All @@ -15,7 +15,6 @@ description = "A strict, minimal implementation of the Python array API standard
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand All @@ -24,7 +23,7 @@ classifiers = [
"Operating System :: OS Independent",
]

[project-urls]
[project.urls]
Homepage = "https://data-apis.org/array-api-strict/"
Repository = "https://github.com/data-apis/array-api-strict"

Expand Down
Loading