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 a8f8fdc commit 752b706Copy full SHA for 752b706
array_api_strict/_creation_functions.py
@@ -20,7 +20,7 @@
20
def _check_valid_dtype(dtype):
21
# Note: Only spelling dtypes as the dtype objects is supported.
22
if dtype not in (None,) + _all_dtypes:
23
- raise ValueError("dtype must be one of the supported dtypes")
+ raise ValueError(f"dtype must be one of the supported dtypes, got {dtype!r}")
24
25
def _supports_buffer_protocol(obj):
26
try:
0 commit comments