Skip to content

Commit 72dd427

Browse files
committed
Change max_dims defaulting in indices() to len(shape)
1 parent fba0fb2 commit 72dd427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hypothesis-python/src/hypothesis/extra/array_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ def indices(
692692
check_valid_dims(min_dims, "min_dims")
693693

694694
if max_dims is None:
695-
max_dims = min(min_dims + 2, len(shape), NDIM_MAX)
695+
max_dims = min(len(shape), NDIM_MAX)
696696
check_type(int, max_dims, "max_dims")
697697
assert isinstance(max_dims, int)
698698
check_argument(

0 commit comments

Comments
 (0)