summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/__init__.pyi2
-rw-r--r--numpy/lib/npyio.pyi3
2 files changed, 4 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]: ...
diff --git a/numpy/lib/npyio.pyi b/numpy/lib/npyio.pyi
index 231ed7584..8007b2dc7 100644
--- a/numpy/lib/npyio.pyi
+++ b/numpy/lib/npyio.pyi
@@ -143,6 +143,7 @@ def loadtxt(
encoding: None | str = ...,
max_rows: None | int = ...,
*,
+ quotechar: None | str = ...,
like: None | _SupportsArrayFunc = ...
) -> NDArray[float64]: ...
@overload
@@ -159,6 +160,7 @@ def loadtxt(
encoding: None | str = ...,
max_rows: None | int = ...,
*,
+ quotechar: None | str = ...,
like: None | _SupportsArrayFunc = ...
) -> NDArray[_SCT]: ...
@overload
@@ -175,6 +177,7 @@ def loadtxt(
encoding: None | str = ...,
max_rows: None | int = ...,
*,
+ quotechar: None | str = ...,
like: None | _SupportsArrayFunc = ...
) -> NDArray[Any]: ...