Skip to content

Commit 7a1bef7

Browse files
committed
Fixes typo in isdtype
1 parent ce3147c commit 7a1bef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/_type_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ def isdtype(dtype, kind):
676676
if not isinstance(dtype, np.dtype):
677677
raise TypeError(f"Expected instance of `dpt.dtype`, got {dtype}")
678678

679-
if isinstance(kind, dtype):
679+
if isinstance(kind, np.dtype):
680680
return dtype == kind
681681

682682
elif isinstance(kind, str):

0 commit comments

Comments
 (0)