Skip to content
Snippets Groups Projects
Commit faabb8ed authored by Bert Palm's avatar Bert Palm 🎇
Browse files

black, isort, reuse

parent e3cabcf6
No related branches found
No related tags found
1 merge request!710Check inputs
Pipeline #177337 failed with stages
in 4 minutes and 1 second
This commit is part of merge request !710. Comments created here will be created in the context of that merge request.
......@@ -24,9 +24,9 @@ from saqc.core import DictOfSeries, Flags, flagging, register
from saqc.funcs.changepoints import _getChangePoints
from saqc.lib.checking import (
validateCallable,
validateFrequency,
validateValueBounds,
validateWindow,
validateFrequency,
)
from saqc.lib.docs import DOC_TEMPLATES
from saqc.lib.tools import detectDeviants, filterKwargs, toSequence
......@@ -148,7 +148,7 @@ class DriftMixin:
)
window = kwargs["freq"]
validateFrequency(window, 'window')
validateFrequency(window, "window")
fields = toSequence(field)
data = self._data[fields].to_pandas()
......
......@@ -213,10 +213,10 @@ def validateValueBounds(
def validateFrequency(
value: str | pd.offsets.BaseOffset | pd.Timedelta,
name: str,
allow_str: bool = True,
fixed_only=False
value: str | pd.offsets.BaseOffset | pd.Timedelta,
name: str,
allow_str: bool = True,
fixed_only=False,
):
# we might want to use checking.py in tools.py, so we use a
# late import here, to avoid circular import errors
......
......@@ -17,13 +17,13 @@ from typing import (
Any,
Callable,
Collection,
Iterable,
List,
Literal,
Sequence,
Tuple,
TypeVar,
Union,
Iterable,
)
import numpy as np
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment