Skip to content

Commit

Permalink
Merge pull request numpy#28109 from jorenham/typing/fix-issubdtype-wr…
Browse files Browse the repository at this point in the history
…ong-bool-return-type

TYP:  Fix the incorrect ``bool`` return type of ``issubdtype``
  • Loading branch information
charris authored Jan 6, 2025
2 parents 1b25ef5 + abd550d commit 1d77082
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions numpy/_core/numerictypes.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,9 @@ class _TypeCodes(TypedDict):
Datetime: L['Mm']
All: L['?bhilqnpBHILQNPefdgFDGSUVOMm']

def isdtype(
dtype: dtype[Any] | type[Any],
kind: DTypeLike | tuple[DTypeLike, ...],
) -> builtins.bool: ...
def isdtype(dtype: dtype[Any] | type[Any], kind: DTypeLike | tuple[DTypeLike, ...]) -> builtins.bool: ...

def issubdtype(arg1: DTypeLike, arg2: DTypeLike) -> bool: ...
def issubdtype(arg1: DTypeLike, arg2: DTypeLike) -> builtins.bool: ...

typecodes: _TypeCodes
ScalarType: tuple[
Expand Down

0 comments on commit 1d77082

Please sign in to comment.