Skip to content

Commit e13bc2c

Browse files
committed
TYP,STY: Use PEP 570 for denoting the from_dlpack's positional-only parameter
1 parent efc850b commit e13bc2c

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
@@ -4368,4 +4368,4 @@ class chararray(ndarray[_ShapeType, _CharDType]):
43684368
class _SupportsDLPack(Protocol[_T_contra]):
43694369
def __dlpack__(self, *, stream: None | _T_contra = ...) -> _PyCapsule: ...
43704370

4371-
def from_dlpack(__obj: _SupportsDLPack[None]) -> NDArray[Any]: ...
4371+
def from_dlpack(obj: _SupportsDLPack[None], /) -> NDArray[Any]: ...

0 commit comments

Comments
 (0)