Skip to content

Commit c08918b

Browse files
committed
lint
1 parent 724ebd5 commit c08918b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

array_api_compat/numpy/fft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
ifftshift = get_xp(np)(_fft.ifftshift)
2121

2222

23-
__all__ = _fft.__all__ + ["rfft2", "irfft2", "fft2", "ifft2"]
23+
__all__ = _fft.__all__ + ["fft2", "ifft2", "irfft2", "rfft2"]
2424

2525
def __dir__() -> list[str]:
2626
return __all__

tests/test_all.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,7 @@ def test_compat_spurious_names(library, module):
312312
compat_mod = getattr(compat_xp, module) if module else compat_xp
313313
aapi_names = set(NAMES[module])
314314
compat_spurious_names = (
315-
set(dir(compat_mod))
316-
- set(dir(bare_mod))
317-
- aapi_names
318-
- {"__all__"}
315+
set(dir(compat_mod)) - set(dir(bare_mod)) - aapi_names - {"__all__"}
319316
)
320317
# Quietly ignore *Result dataclasses
321318
compat_spurious_names = {

0 commit comments

Comments
 (0)