Skip to content

Commit dced91e

Browse files
committed
🚨 fix stubtest errors
1 parent 2c497c0 commit dced91e

5 files changed

Lines changed: 2 additions & 14 deletions

File tree

β€Ž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

β€Ž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

0 commit comments

Comments
Β (0)