Skip to content

Commit

Permalink
signal.windows: Don't used shaped arrays for input params
Browse files Browse the repository at this point in the history
In `_windows.pyi`.
  • Loading branch information
pavyamsiri committed Nov 3, 2024
1 parent 8a3965a commit 8cc7c34
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scipy-stubs/signal/windows/_windows.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ from typing import Any, Literal, TypeAlias, overload
from typing_extensions import Unpack

import numpy as np
import numpy.typing as npt
import optype as op
from scipy._typing import AnyInt, AnyReal

Expand Down Expand Up @@ -37,12 +38,7 @@ __all__ = [

_Array_f8_1d: TypeAlias = np.ndarray[tuple[int], np.dtype[np.float64]]
_Array_f8_2d: TypeAlias = np.ndarray[tuple[int, int], np.dtype[np.float64]]
_Weights: TypeAlias = (
Sequence[AnyReal]
| np.ndarray[tuple[int], np.dtype[np.floating[Any]]]
| np.ndarray[tuple[int], np.dtype[np.integer[Any]]]
| np.ndarray[tuple[int], np.dtype[np.bool_]]
)
_Weights: TypeAlias = Sequence[AnyReal] | npt.NDArray[np.floating[Any]] | npt.NDArray[np.integer[Any]] | npt.NDArray[np.bool_]

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

0 comments on commit 8cc7c34

Please sign in to comment.