Skip to content

Commit 4c1a15d

Browse files
committed
šŸ› fix incorrect None return value in 1-in-2-out ufuncs
1 parent 7af85be commit 4c1a15d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ā€Žsrc/numpy-stubs/_typing/_ufunc.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class _Call12(Protocol):
203203
out: tuple[None, None] = (None, None),
204204
dtype: None = None,
205205
**kwds: Unpack[_Kwargs3],
206-
) -> tuple[None, _ArrayT2]: ...
206+
) -> tuple[_AnyArray, _ArrayT2]: ...
207207
@overload
208208
def __call__(
209209
self,
@@ -215,7 +215,7 @@ class _Call12(Protocol):
215215
out: tuple[None, None] = (None, None),
216216
dtype: None = None,
217217
**kwds: Unpack[_Kwargs3],
218-
) -> tuple[_ArrayT1, None]: ...
218+
) -> tuple[_ArrayT1, _AnyArray]: ...
219219
@overload
220220
def __call__(
221221
self,

0 commit comments

Comments
Ā (0)