Skip to content

Commit e6c29a6

Browse files
Update stubs/resampy/resampy/filters.pyi
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
1 parent 1f86e17 commit e6c29a6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

stubs/resampy/resampy/filters.pyi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ import numpy as np
66
__all__ = ["get_filter", "clear_cache", "sinc_window"]
77

88
# Dictionary to cache loaded filters
9-
FILTER_CACHE: dict[str, tuple[np.ndarray[tuple[int, ...], np.dtype[np.floating[Any]]], int, float]]
9+
FILTER_CACHE: dict[str, tuple[np.ndarray[tuple[int, ...], np.dtype[np.floating]], int, float]]
1010

1111
# List of filter functions available
1212
FILTER_FUNCTIONS: list[str]
1313

1414
def sinc_window(
1515
num_zeros: int = 64,
1616
precision: int = 9,
17-
window: Callable[..., np.ndarray[tuple[int, ...], np.dtype[np.floating[Any]]]] | None = None,
17+
window: Callable[..., np.ndarray[tuple[int, ...], np.dtype[np.floating]]] | None = None,
1818
rolloff: float = 0.945,
19-
) -> tuple[np.ndarray[tuple[int, ...], np.dtype[np.floating[Any]]], int, float]: ...
19+
) -> tuple[np.ndarray[tuple[int, ...], np.dtype[np.floating]], int, float]: ...
2020
def get_filter(
21-
name_or_function: str | Callable[..., tuple[np.ndarray[tuple[int, ...], np.dtype[np.floating[Any]]], int, float]],
22-
**kwargs: Any,
23-
) -> tuple[np.ndarray[tuple[int, ...], np.dtype[np.floating[Any]]], int, float]: ...
24-
def load_filter(filter_name: str) -> tuple[np.ndarray[tuple[int, ...], np.dtype[np.floating[Any]]], int, float]: ...
21+
name_or_function: str | Callable[..., tuple[np.ndarray[tuple[int, ...], np.dtype[np.floating]], int, float]],
22+
**kwargs,
23+
) -> tuple[np.ndarray[tuple[int, ...], np.dtype[np.floating]], int, float]: ...
24+
def load_filter(filter_name: str) -> tuple[np.ndarray[tuple[int, ...], np.dtype[np.floating]], int, float]: ...
2525
def clear_cache() -> None: ...

0 commit comments

Comments
 (0)