Skip to content

Commit 247cb34

Browse files
authored
Merge pull request numpy#21479 from BvB93/typ_1.23
TYP,ENH: Add annotations for new numpy 1.23 features
2 parents 9d32cf7 + e13bc2c commit 247cb34

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-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]: ...

numpy/lib/npyio.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ def loadtxt(
143143
encoding: None | str = ...,
144144
max_rows: None | int = ...,
145145
*,
146+
quotechar: None | str = ...,
146147
like: None | _SupportsArrayFunc = ...
147148
) -> NDArray[float64]: ...
148149
@overload
@@ -159,6 +160,7 @@ def loadtxt(
159160
encoding: None | str = ...,
160161
max_rows: None | int = ...,
161162
*,
163+
quotechar: None | str = ...,
162164
like: None | _SupportsArrayFunc = ...
163165
) -> NDArray[_SCT]: ...
164166
@overload
@@ -175,6 +177,7 @@ def loadtxt(
175177
encoding: None | str = ...,
176178
max_rows: None | int = ...,
177179
*,
180+
quotechar: None | str = ...,
178181
like: None | _SupportsArrayFunc = ...
179182
) -> NDArray[Any]: ...
180183

0 commit comments

Comments
 (0)