Skip to content

Commit f98448b

Browse files
authored
💬 update string literals for SciPy 1.16.0 (#683)
2 parents 92cfd8e + 727e338 commit f98448b

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

‎scipy-stubs/__config__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class _ConfigBuildDependenciesDict(TypedDict):
6060
@type_check_only
6161
class _ConfigPythonInformationDict(TypedDict):
6262
path: str
63-
version: Literal["3.10", "3.11", "3.12", "3.13", "3.14"]
63+
version: Literal["3.11", "3.12", "3.13", "3.14"]
6464

6565
_ConfigDict = TypedDict(
6666
"_ConfigDict",

‎scipy-stubs/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ _SubModule: TypeAlias = Literal[
7878

7979
###
8080

81-
np_minversion: Final = "1.23.5" # undocumented
82-
np_maxversion: Final = "2.5.0" # undocumented
81+
np_minversion: Final = "1.25.2" # undocumented
82+
np_maxversion: Final = "2.6.0" # undocumented
8383
test: Final[PytestTester] = ... # undocumented
8484
submodules: Final[Sequence[_SubModule]] = ... # undocumented

‎scipy-stubs/version.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import typing as _t
22

3-
version: _t.Final[_t.LiteralString] = ...
4-
full_version: _t.Final[_t.LiteralString] = ...
5-
short_version: _t.Final[_t.Literal["1.16.0rc2", "1.16.0"]] = ...
3+
version: _t.Final = "1.16.0"
4+
full_version: _t.Final = "1.16.0"
5+
short_version: _t.Final = "1.16.0"
6+
release: _t.Final = True
67
git_revision: _t.Final[_t.LiteralString] = ...
7-
release: _t.Final[bool] = ...

‎tests/version/test_version.pyi

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
from typing import LiteralString, assert_type
1+
from typing import Literal, LiteralString, assert_type
22

33
import scipy.version
44

55
# this additional assignment avoids having to use the literal string type
66
v: str = scipy.version.short_version
77
assert_type(v, str)
88

9-
assert_type(scipy.version.version, LiteralString)
10-
assert_type(scipy.version.full_version, LiteralString)
119
assert_type(scipy.version.git_revision, LiteralString)
12-
13-
assert_type(scipy.version.release, bool)
10+
assert_type(scipy.version.release, Literal[True])

0 commit comments

Comments
 (0)