@@ -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
1212FILTER_FUNCTIONS : list [str ]
1313
1414def 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 ]: ...
2020def 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 ]: ...
2525def clear_cache () -> None : ...
0 commit comments