Skip to content

Commit e8e0f1b

Browse files
authored
add missing return type annotation
1 parent 211fa3a commit e8e0f1b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/API_specification/array_api/fourier_transform_functions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def ihfft(x: array, /, *, n: Optional[int] = None, axis: int = -1, norm: Literal
413413
"""
414414

415415

416-
def fftfreq(n: int, /, *, d: float = 1.0):
416+
def fftfreq(n: int, /, *, d: float = 1.0) -> array:
417417
"""
418418
Returns the discrete Fourier transform sample frequencies.
419419
@@ -438,7 +438,7 @@ def fftfreq(n: int, /, *, d: float = 1.0):
438438
"""
439439

440440

441-
def rfftfreq(n: int, /, *, d: float = 1.0):
441+
def rfftfreq(n: int, /, *, d: float = 1.0) -> array:
442442
"""
443443
Returns the discrete Fourier transform sample frequencies (for ``rfft`` and ``irfft``).
444444
@@ -465,7 +465,7 @@ def rfftfreq(n: int, /, *, d: float = 1.0):
465465
"""
466466

467467

468-
def fftshift(x: array, /, *, axes: Union[int, Sequence[int]] = None):
468+
def fftshift(x: array, /, *, axes: Union[int, Sequence[int]] = None) -> array:
469469
"""
470470
Shift the zero-frequency component to the center of the spectrum.
471471
@@ -488,7 +488,7 @@ def fftshift(x: array, /, *, axes: Union[int, Sequence[int]] = None):
488488
"""
489489

490490

491-
def ifftshift(x: array, /, *, axes: Union[int, Sequence[int]] = None):
491+
def ifftshift(x: array, /, *, axes: Union[int, Sequence[int]] = None) -> array:
492492
"""
493493
Inverse of ``fftshift``.
494494

0 commit comments

Comments
 (0)