Skip to content

Commit 227b917

Browse files
alexbarrosfabclmnt
authored andcommitted
fix: mypy does not support dinamic types
1 parent 7758dba commit 227b917

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/ydata_profiling/config.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
import yaml
77
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr
88

9-
try:
10-
# typing only available in python 3.8+
11-
from typing import Literal
12-
AutoLagType = Literal["AIC", "BIC", "t-stat"]
13-
except:
14-
AutoLagType = str
159

1610
def _merge_dictionaries(dict1: dict, dict2: dict) -> dict:
1711
"""
@@ -118,7 +112,7 @@ class TimeseriesVars(BaseModel):
118112
lags: List[int] = [1, 7, 12, 24, 30]
119113
significance: float = 0.05
120114
pacf_acf_lag: int = 100
121-
autolag: Optional[AutoLagType] = "AIC"
115+
autolag: Optional[str] = "AIC"
122116
maxlag: Optional[int] = None
123117

124118

0 commit comments

Comments
 (0)