We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hh.two_mutual_arrays()
1 parent 9edcfcc commit 6e8cda6Copy full SHA for 6e8cda6
array_api_tests/hypothesis_helpers.py
@@ -369,6 +369,9 @@ def two_mutual_arrays(
369
) -> Tuple[SearchStrategy[Array], SearchStrategy[Array]]:
370
if not isinstance(dtypes, Sequence):
371
raise TypeError(f"{dtypes=} not a sequence")
372
+ if FILTER_UNDEFINED_DTYPES:
373
+ dtypes = [d for d in dtypes if not isinstance(d, _UndefinedStub)]
374
+ assert len(dtypes) > 0 # sanity check
375
mutual_dtypes = shared(mutually_promotable_dtypes(dtypes=dtypes))
376
mutual_shapes = shared(two_shapes)
377
arrays1 = xps.arrays(
0 commit comments