Skip to content
Snippets Groups Projects
Commit d2a65c87 authored by David Schäfer's avatar David Schäfer
Browse files

type hints

parent 9ce9f067
No related branches found
No related tags found
2 merge requests!591Test b,!579Translation cleanups
This commit is part of merge request !579. Comments created here will be created in the context of that merge request.
......@@ -192,7 +192,7 @@ class Flags:
"""
def __init__(
self, raw_data: Optional[Union[DictLike, Flags]] = None, copy: bool = False
self, raw_data: DictLike | Flags | None = None, copy: bool = False
):
self._data: dict[str, History]
......
......@@ -22,14 +22,14 @@ from saqc.lib.types import ExternalFlag, PandasLike
ForwardMap = Dict[ExternalFlag, float]
BackwardMap = Dict[float, ExternalFlag]
class TranslationScheme:
class TranslationScheme:
@abstractmethod
def __call__(self, ExternalFlag) -> float:
pass
@abstractmethod
def forward(self, PandasLike) -> Flags:
def forward(self, pd.DataFrame | DictOfSeries) -> Flags:
pass
@abstractmethod
......
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