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.
dh.func_in_dtypes
1 parent 6071f44 commit ce2e2c0Copy full SHA for ce2e2c0
array_api_tests/dtype_helpers.py
@@ -406,6 +406,13 @@ def result_type(*dtypes: DataType):
406
func_returns_bool[iop] = func_returns_bool[op]
407
408
409
+func_in_dtypes["__bool__"] = (xp.bool,)
410
+func_in_dtypes["__int__"] = all_int_dtypes
411
+func_in_dtypes["__index__"] = all_int_dtypes
412
+func_in_dtypes["__float__"] = float_dtypes
413
+func_in_dtypes["__dlpack__"] = numeric_dtypes
414
+
415
416
@lru_cache
417
def fmt_types(types: Tuple[Union[DataType, ScalarType], ...]) -> str:
418
f_types = []
0 commit comments