Skip to content

Commit

Permalink
🙈 fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdd committed Jan 25, 2024
1 parent d9c9e73 commit 39a7ab7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tsdownsample/downsampling_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def _view_y(y: np.ndarray) -> np.ndarray:
return y

def _switch_mod_with_y(
self, y_dtype: np.dtype, mod: ModuleType, downsample_func: str = None
self, y_dtype: np.dtype, mod: ModuleType, downsample_func: Optional[str] = None
) -> Callable:
"""Select the appropriate function from the rust module for the y-data.
Expand Down Expand Up @@ -288,7 +288,7 @@ def _switch_mod_with_x_and_y(
x_dtype: np.dtype,
y_dtype: np.dtype,
mod: ModuleType,
downsample_func: str = None,
downsample_func: Optional[str] = None,
) -> Callable:
"""The x-data is considered in the downsampling
Expand Down Expand Up @@ -401,7 +401,7 @@ def _downsample_func_prefix(self) -> str:
return NAN_DOWNSAMPLE_F

def _switch_mod_with_y(
self, y_dtype: np.dtype, mod: ModuleType, downsample_func: str = None
self, y_dtype: np.dtype, mod: ModuleType, downsample_func: Optional[str] = None
) -> Callable:
"""Select the appropriate function from the rust module for the y-data.
Expand Down

0 comments on commit 39a7ab7

Please sign in to comment.