Skip to content

Commit 86c8166

Browse files
authored
πŸ“Œ require python>=3.11 (#523)
2 parents fe2b9f3 + ed0ab92 commit 86c8166

File tree

102 files changed

+272
-355
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+272
-355
lines changed

β€ŽCONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ Ensure you have [`uv`](https://docs.astral.sh/uv/getting-started/installation/)
2424
installed. Now you can install the project with the dev dependencies:
2525

2626
```shell
27-
uv sync --python 3.10
27+
uv sync --python 3.11
2828
```
2929

30-
By installing the lowest support Python version (3.10 in this example), it prevents
30+
By installing the lowest support Python version (3.11 in this example), it prevents
3131
your IDE from e.g. auto-importing unsupported `typing` features.
3232

3333
### Tox

β€ŽREADME.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ ______________________________________________________________________
8888
- ... even in the strict mode
8989
- compatible with the [Python Typing Spec](https://typing.readthedocs.io/en/latest/spec/index.html)
9090
- [SPEC 0](https://scientific-python.org/specs/spec-0000/) compliant
91-
- Supports Python β‰₯ 3.10
92-
- Supports NumPy β‰₯ 1.23.5
91+
- Supports Python β‰₯ 3.11
92+
- Supports NumPy β‰₯ 1.25.2
9393

9494
<!-- NOTE: SciPy permalinks to the following `#installation` anchor; don't modify it! -->
9595

@@ -161,7 +161,7 @@ Even though `scipy-stubs` doesn't enforce an upper bound on the `scipy` version,
161161
fully compatible.
162162

163163
There are no additional restrictions enforced by `scipy-stubs` on the `numpy` requirements.
164-
For `scipy[-stubs]` `1.14.*` and `1.15.*` that is `numpy >= 1.23.5`.
164+
For `scipy-stubs==1.16.*` that is `numpy >= 1.25.2`.
165165

166166
Currently, `scipy-stubs` has one required dependency: [`optype`](https://github.com/jorenham/optype).
167167
This is essential for `scipy-stubs` to work properly, as it relies heavily on it for annotating (shaped) array-likes,

β€Žpyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
55

66
[project]
77
name = "scipy-stubs"
8-
version = "1.15.3.1.dev0"
8+
version = "1.16.0.0.dev0"
99
description = "Type annotations for SciPy"
1010
readme = "README.md"
1111
authors = [
@@ -24,13 +24,12 @@ classifiers = [
2424
"Operating System :: OS Independent",
2525
"Programming Language :: Python",
2626
"Programming Language :: Python :: 3",
27-
"Programming Language :: Python :: 3.10",
2827
"Programming Language :: Python :: 3.11",
2928
"Programming Language :: Python :: 3.12",
3029
"Programming Language :: Python :: 3.13",
3130
"Typing :: Stubs Only",
3231
]
33-
requires-python = ">=3.10"
32+
requires-python = ">=3.11"
3433
dependencies = ["optype>=0.9.3"]
3534

3635
[project.optional-dependencies]

β€Žscipy-stubs/__config__.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
# It contains system_info results at the time of building this package.
33
from enum import Enum
44
from types import ModuleType
5-
from typing import Final, Literal, TypedDict, TypeVar, overload, type_check_only
6-
from typing_extensions import NotRequired
5+
from typing import Final, Literal, NotRequired, TypedDict, TypeVar, overload, type_check_only
76

87
__all__ = ["show"]
98

β€Žscipy-stubs/_lib/_ccallback.pyi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import ctypes as ct
22
from _ctypes import CFuncPtr as _CFuncPtr
33
from types import ModuleType
4-
from typing import ClassVar, Generic, Literal, NoReturn, Protocol, TypeAlias, final, overload, type_check_only
5-
from typing_extensions import CapsuleType as PyCapsule, Self, TypeVar, TypeVarTuple, Unpack, override
4+
from typing import ClassVar, Generic, Literal, NoReturn, Protocol, Self, TypeAlias, final, overload, type_check_only
5+
from typing_extensions import CapsuleType as PyCapsule, TypeVar, TypeVarTuple, Unpack, override
66

77
# some quick interfaces for the relevant `cffi` types
88

@@ -57,25 +57,25 @@ class _CFFIVoid(_CFFIType, Protocol):
5757
def __init__(self, /) -> None: ...
5858

5959
@type_check_only
60-
class _CFFIFunc(_CFFIType, Protocol[_CT_co, Unpack[_CTs]]):
60+
class _CFFIFunc(_CFFIType, Protocol[_CT_co, *_CTs]):
6161
is_array_type: ClassVar[bool] = False
6262

6363
@property
64-
def args(self, /) -> tuple[Unpack[_CTs]]: ...
64+
def args(self, /) -> tuple[*_CTs]: ...
6565
@property
6666
def result(self, /) -> _CT_co: ...
6767
@property
6868
def ellipsis(self, /) -> bool: ...
6969
@property
7070
def abi(self, /) -> int | str | None: ...
71-
def __init__(self, /, args: tuple[Unpack[_CTs]], result: _CT_co, ellipsis: bool, abi: int | None = None) -> None: ...
71+
def __init__(self, /, args: tuple[*_CTs], result: _CT_co, ellipsis: bool, abi: int | None = None) -> None: ...
7272

7373
@type_check_only
7474
@final
75-
class _CFFIFuncPtr(_CFFIFunc[_CT_co, Unpack[_CTs]], Protocol[_CT_co, Unpack[_CTs]]):
75+
class _CFFIFuncPtr(_CFFIFunc[_CT_co, *_CTs], Protocol[_CT_co, *_CTs]):
7676
is_raw_function: ClassVar = False
7777

78-
def as_raw_function(self, /) -> _CFFIFunc[_CT_co, Unpack[_CTs]]: ...
78+
def as_raw_function(self, /) -> _CFFIFunc[_CT_co, *_CTs]: ...
7979

8080
@type_check_only
8181
@final

β€Žscipy-stubs/_lib/_util.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import multiprocessing.pool as mpp
22
import types
33
from collections.abc import Callable, Iterable, Sequence
4-
from typing import Any, Concatenate, Final, Generic, Literal, NamedTuple, TypeAlias, overload
5-
from typing_extensions import Never, TypeVar, override
4+
from typing import Any, Concatenate, Final, Generic, Literal, NamedTuple, Never, TypeAlias, overload
5+
from typing_extensions import TypeVar, override
66

77
import numpy as np
88
import optype as op

β€Žscipy-stubs/_typing.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from os import PathLike
44
from collections.abc import Sequence
55
from types import TracebackType
6-
from typing import IO, Any, Literal, Protocol, TypeAlias, type_check_only
7-
from typing_extensions import LiteralString, Self, TypeVar
6+
from typing import IO, Any, Literal, LiteralString, Protocol, Self, TypeAlias, type_check_only
7+
from typing_extensions import TypeVar
88

99
import numpy as np
1010
import optype as op

β€Žscipy-stubs/constants/_codata.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from collections.abc import Mapping
2-
from typing import Final, Literal, TypeAlias
3-
from typing_extensions import LiteralString
2+
from typing import Final, Literal, LiteralString, TypeAlias
43

54
__all__ = ["ConstantWarning", "find", "physical_constants", "precision", "unit", "value"]
65

β€Žscipy-stubs/datasets/_fetchers.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from typing import Final, Literal as L, overload
2-
from typing_extensions import LiteralString
1+
from typing import Final, Literal as L, LiteralString, overload
32

43
from ._typing import AscentDataset, CanFetch, ECGDataset, Face2Dataset, Face3Dataset
54

β€Žscipy-stubs/datasets/_registry.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from typing import Final, Literal as L, TypedDict, type_check_only
2-
from typing_extensions import LiteralString
1+
from typing import Final, Literal as L, LiteralString, TypedDict, type_check_only
32

43
@type_check_only
54
class _MethodRegistry(TypedDict):

0 commit comments

Comments
Β (0)