Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 25, 2024
1 parent 95c5bc4 commit 4e7dffb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
16 changes: 8 additions & 8 deletions xarray/namedarray/_array_api/_fft/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

from xarray.namedarray._array_api._linalg._linalg import (
fft,
ifft,
fftfreq,
fftn,
fftshift,
hfft,
ifft,
ifftn,
rfft,
ifftshift,
ihfft,
irfft,
rfftn,
irfftn,
hfft,
ihfft,
fftfreq,
rfft,
rfftfreq,
fftshift,
ifftshift,
rfftn,
)

__all__ = [
Expand Down
13 changes: 2 additions & 11 deletions xarray/namedarray/_array_api/_fft/_fft.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

from collections.abc import Sequence
from typing import TYPE_CHECKING, Literal, NamedTuple
from typing import TYPE_CHECKING, Literal

from xarray.namedarray._array_api._utils import (
_get_data_namespace,
Expand All @@ -11,19 +11,10 @@
from xarray.namedarray.core import NamedArray

if TYPE_CHECKING:
from xarray.namedarray._typing import _Axes, _Axis, _DType, _Device
from xarray.namedarray._typing import _Axes, _Axis, _Device

_Norm = Literal["backward", "ortho", "forward"]

from xarray.namedarray._array_api._dtypes import (
_floating_dtypes,
_real_floating_dtypes,
_complex_floating_dtypes,
float32,
complex64,
)
from xarray.namedarray._array_api._data_type_functions import astype


def fft(
x: NamedArray,
Expand Down

0 comments on commit 4e7dffb

Please sign in to comment.