Skip to content

Commit 6c5c350

Browse files
committed
TYP: fix typing errors in numpy._fft
1 parent ee092d6 commit 6c5c350

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

array_api_compat/numpy/fft.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
from numpy.fft import * # noqa: F403
1+
import numpy as np
22
from numpy.fft import __all__ as fft_all
3+
from numpy.fft import fft2, ifft2, irfft2, rfft2
34

4-
from ..common import _fft
55
from .._internal import get_xp
6-
7-
import numpy as np
6+
from ..common import _fft
87

98
fft = get_xp(np)(_fft.fft)
109
ifft = get_xp(np)(_fft.ifft)
@@ -21,7 +20,8 @@
2120
fftshift = get_xp(np)(_fft.fftshift)
2221
ifftshift = get_xp(np)(_fft.ifftshift)
2322

24-
__all__ = fft_all + _fft.__all__
23+
__all__ = ["rfft2", "irfft2", "fft2", "ifft2"]
24+
__all__ += _fft.__all__
2525

2626
del get_xp
2727
del np

0 commit comments

Comments
 (0)