diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2022-05-09 20:10:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 20:10:58 +0200 |
commit | 247cb34641bbd3481c3df741f88d7bfa65901e1b (patch) | |
tree | 735bd85097846fde8736f7d2a4abdf5df3d2927b | |
parent | 9d32cf7fdcccc458310c47e271f43e3c2c1a04d1 (diff) | |
parent | e13bc2c02110e34a2ce685fb3f3321b1d0e84993 (diff) | |
download | numpy-247cb34641bbd3481c3df741f88d7bfa65901e1b.tar.gz |
Merge pull request #21479 from BvB93/typ_1.23
TYP,ENH: Add annotations for new numpy 1.23 features
-rw-r--r-- | numpy/__init__.pyi | 2 | ||||
-rw-r--r-- | numpy/lib/npyio.pyi | 3 |
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]: ... |