Skip to content
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
4 changes: 2 additions & 2 deletions .dprint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"excludes": ["**/*-lock.json", "**/*.lock", "dist/", "site/"],
"plugins": [
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.1.wasm",
"https://plugins.dprint.dev/json-0.20.0.wasm",
"https://plugins.dprint.dev/markdown-0.19.0.wasm",
"https://plugins.dprint.dev/json-0.21.0.wasm",
"https://plugins.dprint.dev/markdown-0.20.0.wasm",
"https://plugins.dprint.dev/toml-0.7.0.wasm",
],
}
26 changes: 13 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["uv_build>=0.9.0,<0.10.0"]
requires = ["uv_build>=0.9.14,<0.10.0"]
build-backend = "uv_build"

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

[project]
name = "numtype"
version = "2.3.4.0.dev0"
version = "2.3.5.0.dev0"
description = "Experimental Typing Stubs for NumPy"
readme = "README.md"
authors = [{ name = "Joren Hammudoglu", email = "jhammudoglu@gmail.com" }]
Expand All @@ -34,7 +34,7 @@ requires-python = ">=3.11"
dependencies = []

[project.optional-dependencies]
numpy = ["numpy>=2.3.4"]
numpy = ["numpy>=2.3.5"]

[project.urls]
Homepage = "https://numpy.org/"
Expand All @@ -46,11 +46,11 @@ Changelog = "https://github.com/numpy/numtype/releases"
numpy = ["numtype[numpy]"]
lint = [
"dprint-py>=0.50.2.0",
"ruff>=0.14.0",
"ruff>=0.14.7",
]
pytest = [
{ include-group = "numpy" },
"pytest>=8.4.2",
"pytest>=9.0.1",
"typing_extensions>=4.15.0",
]
list_and_test = [
Expand All @@ -65,23 +65,23 @@ types = [
basedpyright = [
{ include-group = "numpy" },
{ include-group = "types" },
"basedpyright==1.33.0",
"basedpyright==1.34.0",
]
mypy = [
{ include-group = "types" },
"mypy[faster-cache]>=1.18.2",
"mypy[faster-cache]>=1.19.0",
]
typecheck = [
{ include-group = "basedpyright" },
{ include-group = "mypy" },
]
docs = [
"mkdocs-material>=9.6.21",
"mkdocs-material>=9.7.0",
"mkdocs-awesome-nav>=3.2.0",
"markdown-callouts>=0.4.0",
"mkdocs-include-markdown-plugin>=7.2.0",
"mkdocs-minify-plugin>=0.8.0",
"mkdocstrings[python]>=0.30.1",
"mkdocstrings[python]>=1.0.0",
"pygments>=2.19.2",
]
dev = [
Expand Down Expand Up @@ -217,11 +217,11 @@ allow-dunder-method-names = ["__array__", "__array_ufunc__"]
# pytest

[tool.pytest.ini_options]
minversion = "8.0"
addopts = ["-ra", "--strict-config", "--strict-markers"]
minversion = "9.0"
addopts = ["-ra"]
filterwarnings = ["error"]
log_cli_level = "INFO"
xfail_strict = true
log_level = "INFO"
strict = true

# tox

Expand Down
6 changes: 3 additions & 3 deletions tool/promotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ def _types_co(chars: str, /) -> tuple[_ToScalarType, ...]:

def _promotes_to(sct: npt.DTypeLike) -> tuple[_ToScalarType, ...]:
out: list[_ToScalarType] = []
for _t in (bool, int, float, complex, str, bytes, *np.sctypeDict.values()):
for t in (bool, int, float, complex, str, bytes, *np.sctypeDict.values()):
try:
dt = np.result_type(sct, _t)
dt = np.result_type(sct, t)
except (ValueError, TypeError):
continue
if np.dtype(dt) == sct:
out.append(_t)
out.append(t)
return tuple(dict.fromkeys(out))


Expand Down
Loading