Skip to content

Commit

Permalink
Fix type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaoyingz committed Mar 22, 2022
1 parent a59b793 commit 7bc8426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qlib/data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import bisect
import numpy as np
import pandas as pd
from typing import List, Union, Tuple
from typing import List, Union, Optional

# For supporting multiprocessing in outer code, joblib is used
from joblib import delayed
Expand Down Expand Up @@ -342,7 +342,7 @@ def period_feature(
start_index: int,
end_index: int,
cur_time: pd.Timestamp,
period_list: Tuple[int] = None,
period: Optional[int] = None,
) -> pd.Series:
"""
get the historical periods data series between `start_index` and `end_index`
Expand Down

0 comments on commit 7bc8426

Please sign in to comment.