From 39a7ab72509b454f1bd239af242364d84d71119c Mon Sep 17 00:00:00 2001 From: jvdd Date: Thu, 25 Jan 2024 17:52:39 +0100 Subject: [PATCH] :see_no_evil: fix linting --- tsdownsample/downsampling_interface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tsdownsample/downsampling_interface.py b/tsdownsample/downsampling_interface.py index cac1b53..9c05c54 100644 --- a/tsdownsample/downsampling_interface.py +++ b/tsdownsample/downsampling_interface.py @@ -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. @@ -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 @@ -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.