From 96ea10e56213000a2534e7433515b3ef9045cef6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 21 May 2021 08:52:56 +0200 Subject: [PATCH] Fix circular import in hyperopt --- freqtrade/data/converter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/freqtrade/data/converter.py b/freqtrade/data/converter.py index 7098834ec..ffee0c52c 100644 --- a/freqtrade/data/converter.py +++ b/freqtrade/data/converter.py @@ -10,7 +10,6 @@ from typing import Any, Dict, List import pandas as pd from pandas import DataFrame, to_datetime -from freqtrade.configuration.timerange import TimeRange from freqtrade.constants import DEFAULT_DATAFRAME_COLUMNS, DEFAULT_TRADES_COLUMNS, TradeList @@ -146,7 +145,7 @@ def trim_dataframe(df: DataFrame, timerange, df_date_col: str = 'date', return df -def trim_dataframes(preprocessed: Dict[str, DataFrame], timerange: TimeRange, +def trim_dataframes(preprocessed: Dict[str, DataFrame], timerange, startup_candles: int) -> Dict[str, DataFrame]: """ Trim startup period from analyzed dataframes