diff --git a/src/array_api_extra/_funcs.py b/src/array_api_extra/_funcs.py index 6b46513..459db63 100644 --- a/src/array_api_extra/_funcs.py +++ b/src/array_api_extra/_funcs.py @@ -429,5 +429,7 @@ def sinc(x: Array, /, *, xp: ModuleType) -> Array: err_msg = "`x` must have a real floating data type." raise ValueError(err_msg) # no scalars in `where` - array-api#807 - y = xp.pi * xp.where(x, x, xp.asarray(xp.finfo(x.dtype).smallest_normal, dtype=x.dtype)) + y = xp.pi * xp.where( + x, x, xp.asarray(xp.finfo(x.dtype).smallest_normal, dtype=x.dtype) + ) return xp.sin(y) / y