Skip to content

Commit

Permalink
Update array_api_compat/common/_helpers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron Meurer <[email protected]>
  • Loading branch information
lucascolley and asmeurer authored Dec 12, 2023
1 parent f432d30 commit 4c1d7b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion array_api_compat/common/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def your_function(x, y):
namespaces.add(torch)
else:
# TODO: Support Python scalars?
raise TypeError(f"{type(x)!r} is not a supported array type")
raise TypeError(f"{type(x).__name__} is not a supported array type")

if not namespaces:
raise TypeError("Unrecognized array input")
Expand Down

0 comments on commit 4c1d7b9

Please sign in to comment.