Skip to content

Commit 07d43ed

Browse files
authored
Merge pull request #857 from numpy/update-development-dependencies
2 parents a05f325 + bfcf968 commit 07d43ed

13 files changed

Lines changed: 334 additions & 314 deletions

File tree

pyproject.toml

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

55
[tool.uv.build-backend]
@@ -45,12 +45,12 @@ Changelog = "https://github.com/numpy/numtype/releases"
4545
[dependency-groups]
4646
numpy = ["numtype[numpy]"]
4747
lint = [
48-
"dprint-py>=0.52.0.0",
49-
"ruff>=0.15.5",
48+
"dprint-py>=0.53.1.0",
49+
"ruff>=0.15.11",
5050
]
5151
pytest = [
5252
{ include-group = "numpy" },
53-
"pytest>=9.0.2",
53+
"pytest>=9.0.3",
5454
"typing_extensions>=4.15.0",
5555
]
5656
list_and_test = [
@@ -59,30 +59,30 @@ list_and_test = [
5959
]
6060
types = [
6161
{ include-group = "pytest" },
62-
"types-setuptools>=82.0.0.20260210",
63-
"types-tabulate>=0.10.0.20260308",
62+
"types-setuptools>=82.0.0.20260408",
63+
"types-tabulate>=0.10.0.20260408",
6464
]
6565
basedpyright = [
6666
{ include-group = "numpy" },
6767
{ include-group = "types" },
68-
"basedpyright==1.38.2",
68+
"basedpyright==1.39.2",
6969
]
7070
mypy = [
7171
{ include-group = "types" },
72-
"mypy[faster-cache]>=1.19.1",
72+
"mypy[faster-cache]>=1.20.1",
7373
]
7474
typecheck = [
7575
{ include-group = "basedpyright" },
7676
{ include-group = "mypy" },
7777
]
7878
docs = [
79-
"mkdocs-material>=9.7.4",
79+
"mkdocs-material>=9.7.6",
8080
"mkdocs-awesome-nav>=3.3.0",
8181
"markdown-callouts>=0.4.0",
82-
"mkdocs-include-markdown-plugin>=7.2.1",
82+
"mkdocs-include-markdown-plugin>=7.2.2",
8383
"mkdocs-minify-plugin>=0.8.0",
84-
"mkdocstrings[python]>=1.0.3",
85-
"pygments>=2.19.2",
84+
"mkdocstrings[python]>=1.0.4",
85+
"pygments>=2.20.0",
8686
]
8787
dev = [
8888
{ include-group = "list_and_test" },

src/numpy-stubs/@test/runtime/legacy/comparisons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
b_ = np.bool()
2121

2222
b = False
23-
c = complex()
23+
c = 0j
2424
f = 0.0
2525
i = 0
2626

src/numpy-stubs/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]):
17651765

17661766
#
17671767
@overload
1768-
def __array__(self, /, *, copy: bool | None = None) -> ndarray[_ShapeT_co, _DTypeT_co]: ...
1768+
def __array__(self, dtype: None = None, /, *, copy: bool | None = None) -> ndarray[_ShapeT_co, _DTypeT_co]: ...
17691769
@overload
17701770
def __array__(self, dtype: _DTypeT, /, *, copy: bool | None = None) -> ndarray[_ShapeT_co, _DTypeT]: ...
17711771

src/numpy-stubs/lib/_format_impl.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class _HeaderDict_1_0(TypedDict):
3333

3434
EXPECTED_KEYS: Final[set[str]] = ...
3535
MAGIC_PREFIX: Final = b"\x93NUMPY"
36-
MAGIC_LEN: Final = 16
36+
MAGIC_LEN: Final = 8
3737
ARRAY_ALIGN: Final = 64
3838
BUFFER_SIZE: Final = 262_144 # 2**18
3939
GROWTH_AXIS_MAX_DIGITS: Final = 21

src/numpy-stubs/testing/_private/utils.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ IS_PYPY: Final[bool] = ...
122122
IS_PYSTON: Final[bool] = ...
123123
IS_WASM: Final[bool] = ...
124124
HAS_REFCOUNT: Final[bool] = ...
125-
BLAS_SUPPORTS_FPE: Final = True
125+
BLAS_SUPPORTS_FPE: Final[bool] = ...
126126
HAS_LAPACK64: Final[bool] = ...
127127
NOGIL_BUILD: Final[bool] = ...
128128

tool/allowlists/py312.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@
22

33
numpy\.distutils
44
numpy\.f2py\._backends\._distutils
5-
6-
# false positive "... is not a Union" errors
7-
numpy\.typing\.ArrayLike
8-
numpy\.typing\.DTypeLike

tool/allowlists/py313.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@
22

33
numpy\.distutils
44
numpy\.f2py\._backends\._distutils
5-
6-
# false positive "... is not a Union" errors
7-
numpy\.typing\.ArrayLike
8-
numpy\.typing\.DTypeLike

tool/allowlists/py314.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@
22

33
numpy\.distutils
44
numpy\.f2py\._backends\._distutils
5-
6-
# false positive "... is not a Union" errors
7-
numpy\.typing\.ArrayLike
8-
numpy\.typing\.DTypeLike

tool/stubtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# requires-python = ">=3.11"
33
# dependencies = [
44
# "numtype[numpy]",
5-
# "mypy[faster-cache] >=1.19.1", # keep in sync with pyproject.toml
5+
# "mypy[faster-cache] >=1.20.1", # keep in sync with pyproject.toml
66
# "PyInstaller",
77
# "hypothesis",
88
# "pytest",

tool/stubtest.py.lock

Lines changed: 146 additions & 125 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)