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 52154c7 commit a559ad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/timeseriesflattener/v1/flattened_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import time
from datetime import timedelta
from multiprocessing import Pool
from typing import Callable, List, Optional, Sequence
from typing import Callable, List, Optional, Sequence, Union

import coloredlogs
import numpy as np
Expand Down Expand Up @@ -724,7 +724,7 @@ def _check_that_spec_df_timestamp_col_is_correctly_formatted(self, spec: Tempora
f"{spec.feature_base_name}: Minimum timestamp is {min_timestamp} - perhaps ints were coerced to timestamps?"
)

def add_spec(self, spec: Sequence[AnySpec] | AnySpec):
def add_spec(self, spec: Sequence[Union[AnySpec, AnySpec]]):
"""Add a specification to the flattened dataset.
This adds it to a queue of unprocessed specs, which are not processed
Expand Down

0 comments on commit a559ad5

Please sign in to comment.