Skip to content

Commit 5932e2f

Browse files
committed
Tweak TypeError for incorrect dtype kind in array inspection utilities
1 parent 9dffdc0 commit 5932e2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/_array_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _isdtype_impl(dtype, kind):
4646
elif isinstance(kind, tuple):
4747
return any(_isdtype_impl(dtype, k) for k in kind)
4848
else:
49-
raise TypeError(f"Unsupported data type kind: {kind}")
49+
raise TypeError(f"Unsupported type for dtype kind: {type(kind)}")
5050

5151

5252
def _get_device_impl(d):

0 commit comments

Comments
 (0)