Skip to content

Commit a28f8bc

Browse files
committed
signal: Replace the final Untyped in _short_time_fft.pyi.
1 parent 49cf93c commit a28f8bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scipy-stubs/signal/_short_time_fft.pyi

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from collections.abc import Callable
22
from typing import Any, Literal, TypeAlias
3-
from typing_extensions import Self
3+
from typing_extensions import Self, Unpack
44

55
import numpy as np
66
import optype.numpy as onp
7-
from scipy._typing import Untyped
7+
from .windows._windows import _Window, _WindowNeedsParams
88

99
__all__ = ["ShortTimeFFT"]
1010

@@ -41,7 +41,7 @@ class ShortTimeFFT:
4141
@classmethod
4242
def from_window(
4343
cls,
44-
win_param: str | tuple[Untyped, ...] | float,
44+
win_param: _Window | onp.ToFloat | tuple[_Window | _WindowNeedsParams, Unpack[tuple[object, ...]]],
4545
fs: float,
4646
nperseg: int,
4747
noverlap: int,

0 commit comments

Comments
 (0)