Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e042dd

Browse files
authored
Merge pull request #28113 from charris/backport-28109
TYP: Return the correct ``bool`` from ``issubdtype``
2 parents 90a05da + 1fc37e6 commit 6e042dd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

numpy/_core/numerictypes.pyi

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,9 @@ class _TypeCodes(TypedDict):
177177
Datetime: L['Mm']
178178
All: L['?bhilqnpBHILQNPefdgFDGSUVOMm']
179179

180-
def isdtype(
181-
dtype: dtype[Any] | type[Any],
182-
kind: DTypeLike | tuple[DTypeLike, ...],
183-
) -> builtins.bool: ...
180+
def isdtype(dtype: dtype[Any] | type[Any], kind: DTypeLike | tuple[DTypeLike, ...]) -> builtins.bool: ...
184181

185-
def issubdtype(arg1: DTypeLike, arg2: DTypeLike) -> bool: ...
182+
def issubdtype(arg1: DTypeLike, arg2: DTypeLike) -> builtins.bool: ...
186183

187184
typecodes: _TypeCodes
188185
ScalarType: tuple[

0 commit comments

Comments
 (0)