@@ -413,7 +413,7 @@ def ihfft(x: array, /, *, n: Optional[int] = None, axis: int = -1, norm: Literal
413
413
"""
414
414
415
415
416
- def fftfreq (n : int , / , * , d : float = 1.0 ):
416
+ def fftfreq (n : int , / , * , d : float = 1.0 ) -> array :
417
417
"""
418
418
Returns the discrete Fourier transform sample frequencies.
419
419
@@ -438,7 +438,7 @@ def fftfreq(n: int, /, *, d: float = 1.0):
438
438
"""
439
439
440
440
441
- def rfftfreq (n : int , / , * , d : float = 1.0 ):
441
+ def rfftfreq (n : int , / , * , d : float = 1.0 ) -> array :
442
442
"""
443
443
Returns the discrete Fourier transform sample frequencies (for ``rfft`` and ``irfft``).
444
444
@@ -465,7 +465,7 @@ def rfftfreq(n: int, /, *, d: float = 1.0):
465
465
"""
466
466
467
467
468
- def fftshift (x : array , / , * , axes : Union [int , Sequence [int ]] = None ):
468
+ def fftshift (x : array , / , * , axes : Union [int , Sequence [int ]] = None ) -> array :
469
469
"""
470
470
Shift the zero-frequency component to the center of the spectrum.
471
471
@@ -488,7 +488,7 @@ def fftshift(x: array, /, *, axes: Union[int, Sequence[int]] = None):
488
488
"""
489
489
490
490
491
- def ifftshift (x : array , / , * , axes : Union [int , Sequence [int ]] = None ):
491
+ def ifftshift (x : array , / , * , axes : Union [int , Sequence [int ]] = None ) -> array :
492
492
"""
493
493
Inverse of ``fftshift``.
494
494
0 commit comments