Skip to content

Commit 1aa2147

Browse files
committed
🏷️ fix stubtest error in _core._multiarray_umath
1 parent 4a89cbe commit 1aa2147

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.mypyignore-todo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ numpy(\..+)?\.floating.as_integer_ratio
88
numpy(\..+)?\.complexfloating.__hash__
99
numpy(\..+)?\.complexfloating.__complex__
1010

11-
numpy\._?core(\._multiarray_umath|\.multiarray)\.error
1211
numpy(\._core(\.memmap)?|\.matlib)?\.memmap\.__new__
1312
numpy(\.matrixlib(\.defmatrix)?|\.matlib)?\.matrix\.__new__
1413
numpy(\.lib\._polynomial_impl|\.matlib)?\.poly1d\.integ

src/numpy-stubs/_core/_multiarray_umath.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,8 @@ NAN: Final[float] = ...
385385

386386
###
387387

388-
error: Final = Exception
388+
# using `Final` or `TypeAlias` will break stubtest
389+
error = Exception
389390

390391
tracemalloc_domain: Final[int] = ...
391392
_extobj_contextvar: _contextvars.ContextVar[CapsuleType]

0 commit comments

Comments
 (0)