8000 MAINT: correct typing for ndarray.__array_finalize__ · numpy/numpy@176f66a · GitHub
[go: up one dir, main page]

Skip to content

Commit 176f66a

Browse files
committed
MAINT: correct typing for ndarray.__array_finalize__
1 parent 99d927b commit 176f66a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
14961496
) -> Any: ...
14971497

14981498
@property
1499-
def __array_finalize__(self) -> None: ...
1499+
def __array_finalize__(self, obj: None | NDArray[Any], /) -> None: ...
15001500

15011501
def __array_wrap__(
15021502
self,

0 commit comments

Comments
 (0)
0