Generate non-tuples from npst.basic_indices()
#2486
Labels
enhancement
it's not broken, but we want it to be better
npst.basic_indices()
#2486
The
hypothesis.extra.numpy.basic_indices()
strategy is good, but per Quansight-Labs/ndindex#46 we would like to sometimes return non-tuple values. InBasicIndexStrategy.do_draw
, if after all the other logic we would return a tuple of length one,if len(result) == 1 and draw(booleans()): return result[0]
.The text was updated successfully, but these errors were encountered: