Skip to content

Commit 08e8118

Browse files
authored
Merge pull request #745 from numpy/dependency-updates
2 parents b1ee579 + 8ae5ac5 commit 08e8118

File tree

4 files changed

+500
-404
lines changed

4 files changed

+500
-404
lines changed

.dprint.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"excludes": ["**/*-lock.json", "**/*.lock", "dist/", "site/"],
1717
"plugins": [
1818
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.1.wasm",
19-
"https://plugins.dprint.dev/json-0.20.0.wasm",
20-
"https://plugins.dprint.dev/markdown-0.19.0.wasm",
19+
"https://plugins.dprint.dev/json-0.21.0.wasm",
20+
"https://plugins.dprint.dev/markdown-0.20.0.wasm",
2121
"https://plugins.dprint.dev/toml-0.7.0.wasm",
2222
],
2323
}

pyproject.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["uv_build>=0.9.0,<0.10.0"]
2+
requires = ["uv_build>=0.9.14,<0.10.0"]
33
build-backend = "uv_build"
44

55
[tool.uv.build-backend]
@@ -9,7 +9,7 @@ source-exclude = ['\@test', ".ruff_cache", ".ruff.toml"]
99

1010
[project]
1111
name = "numtype"
12-
version = "2.3.4.0.dev0"
12+
version = "2.3.5.0.dev0"
1313
description = "Experimental Typing Stubs for NumPy"
1414
readme = "README.md"
1515
authors = [{ name = "Joren Hammudoglu", email = "[email protected]" }]
@@ -34,7 +34,7 @@ requires-python = ">=3.11"
3434
dependencies = []
3535

3636
[project.optional-dependencies]
37-
numpy = ["numpy>=2.3.4"]
37+
numpy = ["numpy>=2.3.5"]
3838

3939
[project.urls]
4040
Homepage = "https://numpy.org/"
@@ -46,11 +46,11 @@ Changelog = "https://github.com/numpy/numtype/releases"
4646
numpy = ["numtype[numpy]"]
4747
lint = [
4848
"dprint-py>=0.50.2.0",
49-
"ruff>=0.14.0",
49+
"ruff>=0.14.7",
5050
]
5151
pytest = [
5252
{ include-group = "numpy" },
53-
"pytest>=8.4.2",
53+
"pytest>=9.0.1",
5454
"typing_extensions>=4.15.0",
5555
]
5656
list_and_test = [
@@ -65,23 +65,23 @@ types = [
6565
basedpyright = [
6666
{ include-group = "numpy" },
6767
{ include-group = "types" },
68-
"basedpyright==1.33.0",
68+
"basedpyright==1.34.0",
6969
]
7070
mypy = [
7171
{ include-group = "types" },
72-
"mypy[faster-cache]>=1.18.2",
72+
"mypy[faster-cache]>=1.19.0",
7373
]
7474
typecheck = [
7575
{ include-group = "basedpyright" },
7676
{ include-group = "mypy" },
7777
]
7878
docs = [
79-
"mkdocs-material>=9.6.21",
79+
"mkdocs-material>=9.7.0",
8080
"mkdocs-awesome-nav>=3.2.0",
8181
"markdown-callouts>=0.4.0",
8282
"mkdocs-include-markdown-plugin>=7.2.0",
8383
"mkdocs-minify-plugin>=0.8.0",
84-
"mkdocstrings[python]>=0.30.1",
84+
"mkdocstrings[python]>=1.0.0",
8585
"pygments>=2.19.2",
8686
]
8787
dev = [
@@ -217,11 +217,11 @@ allow-dunder-method-names = ["__array__", "__array_ufunc__"]
217217
# pytest
218218

219219
[tool.pytest.ini_options]
220-
minversion = "8.0"
221-
addopts = ["-ra", "--strict-config", "--strict-markers"]
220+
minversion = "9.0"
221+
addopts = ["-ra"]
222222
filterwarnings = ["error"]
223-
log_cli_level = "INFO"
224-
xfail_strict = true
223+
log_level = "INFO"
224+
strict = true
225225

226226
# tox
227227

tool/promotion.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ def _types_co(chars: str, /) -> tuple[_ToScalarType, ...]:
3838

3939
def _promotes_to(sct: npt.DTypeLike) -> tuple[_ToScalarType, ...]:
4040
out: list[_ToScalarType] = []
41-
for _t in (bool, int, float, complex, str, bytes, *np.sctypeDict.values()):
41+
for t in (bool, int, float, complex, str, bytes, *np.sctypeDict.values()):
4242
try:
43-
dt = np.result_type(sct, _t)
43+
dt = np.result_type(sct, t)
4444
except (ValueError, TypeError):
4545
continue
4646
if np.dtype(dt) == sct:
47-
out.append(_t)
47+
out.append(t)
4848
return tuple(dict.fromkeys(out))
4949

5050

0 commit comments

Comments
 (0)