Skip to content

Commit

Permalink
fix: mypy does not support dinamic types
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarros authored and fabclmnt committed Oct 28, 2024
1 parent 7758dba commit 227b917
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/ydata_profiling/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
import yaml
from pydantic.v1 import BaseModel, BaseSettings, Field, PrivateAttr

try:
# typing only available in python 3.8+
from typing import Literal
AutoLagType = Literal["AIC", "BIC", "t-stat"]
except:
AutoLagType = str

def _merge_dictionaries(dict1: dict, dict2: dict) -> dict:
"""
Expand Down Expand Up @@ -118,7 +112,7 @@ class TimeseriesVars(BaseModel):
lags: List[int] = [1, 7, 12, 24, 30]
significance: float = 0.05
pacf_acf_lag: int = 100
autolag: Optional[AutoLagType] = "AIC"
autolag: Optional[str] = "AIC"
maxlag: Optional[int] = None


Expand Down

0 comments on commit 227b917

Please sign in to comment.