Skip to content

Commit 8cc7c34

Browse files
committed
signal.windows: Don't used shaped arrays for input params
In `_windows.pyi`.
1 parent 8a3965a commit 8cc7c34

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

scipy-stubs/signal/windows/_windows.pyi

+2-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ from typing import Any, Literal, TypeAlias, overload
33
from typing_extensions import Unpack
44

55
import numpy as np
6+
import numpy.typing as npt
67
import optype as op
78
from scipy._typing import AnyInt, AnyReal
89

@@ -37,12 +38,7 @@ __all__ = [
3738

3839
_Array_f8_1d: TypeAlias = np.ndarray[tuple[int], np.dtype[np.float64]]
3940
_Array_f8_2d: TypeAlias = np.ndarray[tuple[int, int], np.dtype[np.float64]]
40-
_Weights: TypeAlias = (
41-
Sequence[AnyReal]
42-
| np.ndarray[tuple[int], np.dtype[np.floating[Any]]]
43-
| np.ndarray[tuple[int], np.dtype[np.integer[Any]]]
44-
| np.ndarray[tuple[int], np.dtype[np.bool_]]
45-
)
41+
_Weights: TypeAlias = Sequence[AnyReal] | npt.NDArray[np.floating[Any]] | npt.NDArray[np.integer[Any]] | npt.NDArray[np.bool_]
4642

4743
_Norm: TypeAlias = Literal[2, "approximate", "subsample"]
4844
_WindowLength: TypeAlias = int | np.int16 | np.int32 | np.int64

0 commit comments

Comments
 (0)