Skip to content

Commit b7065de

Browse files
committed
Enable fft in the stubs
This requires data-apis/array-api#806 to work.
1 parent 4a0d975 commit b7065de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

array_api_tests/stubs.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@
5555
all_funcs.extend(funcs)
5656
name_to_func: Dict[str, FunctionType] = {f.__name__: f for f in all_funcs}
5757

58-
EXTENSIONS: List[str] = ["linalg"] # TODO: add "fft" once stubs available
58+
EXTENSIONS: List[str] = ["linalg"]
59+
if api_version >= "2022.12":
60+
EXTENSIONS.append("fft")
5961
extension_to_funcs: Dict[str, List[FunctionType]] = {}
6062
for ext in EXTENSIONS:
6163
mod = name_to_mod[ext]

0 commit comments

Comments
 (0)