We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7e48141 + b3c9201 commit e3a0722Copy full SHA for e3a0722
array_api_tests/test_statistical_functions.py
@@ -20,6 +20,8 @@
20
21
def kwarg_dtypes(dtype: DataType) -> st.SearchStrategy[Optional[DataType]]:
22
dtypes = [d2 for d1, d2 in dh.promotion_table if d1 == dtype]
23
+ if hh.FILTER_UNDEFINED_DTYPES:
24
+ dtypes = [d for d in dtypes if not isinstance(d, _UndefinedStub)]
25
return st.none() | st.sampled_from(dtypes)
26
27
0 commit comments