Refactor extra.numpy.basic_indices() handling of max_dims when allow_newaxis=False
#3091
Closed
2 tasks
Labels
internals
Stuff that only Hypothesis devs should ever see
legibility
make errors helpful and Hypothesis grokable
Via #3065 (comment),
basic_indices()is doing more work than it needs to whenallow_newaxis=False- and that's particularly salient because thearray_apiextra doesn't havenewaxisat all. So the internals part:allow_newaxis=False,max_dimsshould be set tolen(shape), and_array_helpers.pyand refactor thearray_apiextra to use this tooThis also suggests a constraint on the arguments that we're not currently enforcing for the Numpy extra:
The text was updated successfully, but these errors were encountered: