Skip to content

Commit d113409

Browse files
committed
restore hh.scalars strategy
1 parent 581aa49 commit d113409

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

array_api_tests/hypothesis_helpers.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -454,12 +454,9 @@ def scalars(draw, dtypes, finite=False, **kwds):
454454
"""
455455
Strategy to generate a scalar that matches a dtype strategy
456456
457-
dtypes should be one of the shared_* dtypes strategies or a sequence of dtypes.
457+
dtypes should be one of the shared_* dtypes strategies.
458458
"""
459-
if isinstance(dtypes, Sequence):
460-
dtype = draw(sampled_from(dtypes))
461-
else:
462-
dtype = draw(dtypes)
459+
dtype = draw(dtypes)
463460
mM = kwds.pop('mM', None)
464461
if dh.is_int_dtype(dtype):
465462
if mM is None:

0 commit comments

Comments
 (0)