Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
HLasse committed May 17, 2024
1 parent a559ad5 commit 7300523
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/timeseriesflattener/spec_processors/temporal.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import datetime as dt
from typing import TYPE_CHECKING, Callable
from typing import TYPE_CHECKING, Callable, Union

import polars as pl
import polars.selectors as cs
Expand Down Expand Up @@ -148,7 +148,7 @@ def _slice_and_aggregate_spec(
return masked_aggregator(sliced_frame)


TemporalSpec = PredictorSpec | OutcomeSpec | BooleanOutcomeSpec
TemporalSpec = Union[PredictorSpec, OutcomeSpec, BooleanOutcomeSpec]


def _get_pred_time_range(frame: PredictionTimeFrame) -> tuple[dt.datetime, dt.datetime]:
Expand Down

0 comments on commit 7300523

Please sign in to comment.