We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f432d30 commit 4c1d7b9Copy full SHA for 4c1d7b9
array_api_compat/common/_helpers.py
@@ -99,7 +99,7 @@ def your_function(x, y):
99
namespaces.add(torch)
100
else:
101
# TODO: Support Python scalars?
102
- raise TypeError(f"{type(x)!r} is not a supported array type")
+ raise TypeError(f"{type(x).__name__} is not a supported array type")
103
104
if not namespaces:
105
raise TypeError("Unrecognized array input")
0 commit comments