From 4e5c0d819cafbdfff34707e19b931d7dd4160224 Mon Sep 17 00:00:00 2001 From: Lucas Colley Date: Sun, 17 Nov 2024 19:42:10 +0000 Subject: [PATCH] appease formatter --- src/array_api_extra/_funcs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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