Skip to content

Commit 1e6c520

Browse files
authored
Fix missing string format in isdtype
1 parent 02448c4 commit 1e6c520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/_data_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def isdtype(dtype_, kind):
4444
"""
4545

4646
if not isinstance(dtype_, dtype):
47-
raise TypeError("Expected instance of `dpt.dtype`, got {dtype_}")
47+
raise TypeError(f"Expected instance of `dpt.dtype`, got {dtype_}")
4848

4949
if isinstance(kind, dtype):
5050
return dtype_ == kind

0 commit comments

Comments
 (0)