From a28f8bc6c69b9cc50921be2a164dddf1f9a6e35d Mon Sep 17 00:00:00 2001 From: Pavadol Yamsiri Date: Fri, 29 Nov 2024 11:47:31 +1100 Subject: [PATCH] `signal`: Replace the final `Untyped` in `_short_time_fft.pyi`. --- scipy-stubs/signal/_short_time_fft.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scipy-stubs/signal/_short_time_fft.pyi b/scipy-stubs/signal/_short_time_fft.pyi index aaf151f0..a44460d0 100644 --- a/scipy-stubs/signal/_short_time_fft.pyi +++ b/scipy-stubs/signal/_short_time_fft.pyi @@ -1,10 +1,10 @@ from collections.abc import Callable from typing import Any, Literal, TypeAlias -from typing_extensions import Self +from typing_extensions import Self, Unpack import numpy as np import optype.numpy as onp -from scipy._typing import Untyped +from .windows._windows import _Window, _WindowNeedsParams __all__ = ["ShortTimeFFT"] @@ -41,7 +41,7 @@ class ShortTimeFFT: @classmethod def from_window( cls, - win_param: str | tuple[Untyped, ...] | float, + win_param: _Window | onp.ToFloat | tuple[_Window | _WindowNeedsParams, Unpack[tuple[object, ...]]], fs: float, nperseg: int, noverlap: int,