Skip to content

Commit 18adfb5

Browse files
committed
revert Optional
1 parent c970429 commit 18adfb5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

runtime/databricks/automl_runtime/forecast/pmdarima/training.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#
1616
import logging
1717
import traceback
18-
from typing import List
18+
from typing import List, Optional
1919

2020
import pandas as pd
2121
import pickle
@@ -35,8 +35,8 @@ class ArimaEstimator:
3535
"""
3636

3737
def __init__(self, horizon: int, frequency_unit: str, metric: str, seasonal_periods: List[int],
38-
num_folds: int = 20, max_steps: int = 150, exogenous_cols: List[str] | None = None,
39-
split_cutoff: pd.Timestamp | None = None) -> None:
38+
num_folds: int = 20, max_steps: int = 150, exogenous_cols: Optional[List[str]] = None,
39+
split_cutoff: Optional[pd.Timestamp] = None) -> None:
4040
"""
4141
:param horizon: Number of periods to forecast forward
4242
:param frequency_unit: Frequency of the time series

runtime/databricks/automl_runtime/forecast/prophet/forecast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def __init__(self, horizon: int, frequency_unit: str, metric: str, interval_widt
9292
max_eval: int = 10, trial_timeout: int = None,
9393
random_state: int = 0, is_parallel: bool = True,
9494
regressors = None,
95-
split_cutoff: pd.Timestamp | None = None, **prophet_kwargs) -> None:
95+
split_cutoff: Optional[pd.Timestamp] = None, **prophet_kwargs) -> None:
9696
"""
9797
Initialization
9898

0 commit comments

Comments
 (0)