Skip to content

Commit 44bbdb2

Browse files
committed
Better error message
1 parent 306de9b commit 44bbdb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_strict/_array_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def _validate_index(self, key):
439439
"Array API when the array is the sole index."
440440
)
441441
if not get_array_api_strict_flags()['boolean_indexing']:
442-
raise RuntimeError("Boolean array indexing (masking) requires data-dependent shapes, but the boolean_indexing flag has been disabled for array-api-strict")
442+
raise RuntimeError("The boolean_indexing flag has been disabled for array-api-strict")
443443

444444
elif i.dtype in _integer_dtypes and i.ndim != 0:
445445
raise IndexError(

0 commit comments

Comments
 (0)