Skip to content
Snippets Groups Projects
Commit 5406404b authored by Felix Fischer's avatar Felix Fischer :shrimp:
Browse files

Made typing for function calls more specific

parent 550f6290
No related branches found
No related tags found
1 merge request!56Fix type
Pipeline #1377821 failed
......@@ -8,6 +8,9 @@ from typing import Tuple, Optional, Union, overload, TypeVar
from scientific_plots.types_ import Vector, Matrix, Tensor
Input = TypeVar("Input", Vector, Matrix, Tensor)
def welch(
Y: Union[Vector, list[float]],
fs: Optional[float] = None,
......@@ -47,17 +50,17 @@ def savgol_filter(
def sosfilt(
sos: Single, x: Union[Single, Matrix],
sos: Single, x: Input,
axis: int = -1, zi: Optional[Single] = None,
padtype: Optional[str] = "odd", padlen: Optional[int] = None)\
-> Vector: ...
-> Input: ...
def sosfiltfilt(
sos: Single, x: Union[Single, Matrix],
sos: Single, x: Input,
axis: int = -1, zi: Optional[Single] = None,
padtype: Optional[str] = "odd", padlen: Optional[int] = None)\
-> Vector: ...
-> Input: ...
def butter(
......@@ -65,9 +68,6 @@ def butter(
output: str = "ba", fs: Optional[float] = None) -> Vector: ...
Input = TypeVar("Input", Vector, Matrix, Tensor)
def wiener(
im: Input,
noise: Optional[float] = None,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment