Skip to content

Commit

Permalink
Change max_dims defaulting in indices() to len(shape)
Browse files Browse the repository at this point in the history
  • Loading branch information
honno committed Sep 10, 2021
1 parent fba0fb2 commit 72dd427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hypothesis-python/src/hypothesis/extra/array_api.py
Expand Up @@ -692,7 +692,7 @@ def indices(
check_valid_dims(min_dims, "min_dims")

if max_dims is None:
max_dims = min(min_dims + 2, len(shape), NDIM_MAX)
max_dims = min(len(shape), NDIM_MAX)
check_type(int, max_dims, "max_dims")
assert isinstance(max_dims, int)
check_argument(
Expand Down

0 comments on commit 72dd427

Please sign in to comment.