From 5488e2e90492ba4bacd7eb5be781bb29cfd21589 Mon Sep 17 00:00:00 2001 From: Lasse Date: Fri, 17 May 2024 13:40:09 +0200 Subject: [PATCH] misc --- src/timeseriesflattener/v1/feature_specs/group_specs.py | 2 +- src/timeseriesflattener/v1/feature_specs/single_specs.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/timeseriesflattener/v1/feature_specs/group_specs.py b/src/timeseriesflattener/v1/feature_specs/group_specs.py index 21822e00..e9ec383c 100644 --- a/src/timeseriesflattener/v1/feature_specs/group_specs.py +++ b/src/timeseriesflattener/v1/feature_specs/group_specs.py @@ -106,7 +106,7 @@ def create_combinations(self) -> List[OutcomeSpec]: ] -GroupSpec = PredictorGroupSpec | OutcomeGroupSpec +GroupSpec = Union[PredictorGroupSpec, OutcomeGroupSpec] def create_feature_combinations_from_dict( diff --git a/src/timeseriesflattener/v1/feature_specs/single_specs.py b/src/timeseriesflattener/v1/feature_specs/single_specs.py index 399a2ca4..bb1a8b2e 100644 --- a/src/timeseriesflattener/v1/feature_specs/single_specs.py +++ b/src/timeseriesflattener/v1/feature_specs/single_specs.py @@ -192,5 +192,5 @@ def get_output_col_name(self) -> str: ) -TemporalSpec = PredictorSpec | OutcomeSpec -AnySpec = StaticSpec | TemporalSpec +TemporalSpec = Union[PredictorSpec, OutcomeSpec] +AnySpec = Union[StaticSpec, TemporalSpec]