diff options
| author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2022-05-09 18:30:22 +0200 |
|---|---|---|
| committer | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2022-05-09 18:30:22 +0200 |
| commit | e13bc2c02110e34a2ce685fb3f3321b1d0e84993 (patch) | |
| tree | a3f5e5591c8681288e81feb3052a691015d382fd /numpy | |
| parent | efc850b89e4c235bea06e72af20b791131d94c8c (diff) | |
| download | numpy-e13bc2c02110e34a2ce685fb3f3321b1d0e84993.tar.gz | |
TYP,STY: Use PEP 570 for denoting the `from_dlpack`'s positional-only parameter
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/__init__.pyi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/__init__.pyi b/numpy/__init__.pyi index f22692c02..570d84c1c 100644 --- a/numpy/__init__.pyi +++ b/numpy/__init__.pyi @@ -4368,4 +4368,4 @@ class chararray(ndarray[_ShapeType, _CharDType]): class _SupportsDLPack(Protocol[_T_contra]): def __dlpack__(self, *, stream: None | _T_contra = ...) -> _PyCapsule: ... -def from_dlpack(__obj: _SupportsDLPack[None]) -> NDArray[Any]: ... +def from_dlpack(obj: _SupportsDLPack[None], /) -> NDArray[Any]: ... |
