From 5b3f348bbb5df530f6700f017d90430bb933baef Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 5 May 2024 20:01:49 +0200 Subject: [PATCH] chore: Don't use method call in function header --- freqtrade/freqai/data_kitchen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/freqai/data_kitchen.py b/freqtrade/freqai/data_kitchen.py index 04f7322dc..903f3c222 100644 --- a/freqtrade/freqai/data_kitchen.py +++ b/freqtrade/freqai/data_kitchen.py @@ -776,7 +776,7 @@ class FreqaiDataKitchen: corr_dataframes: dict = {}, base_dataframes: dict = {}, pair: str = "", - prediction_dataframe: DataFrame = pd.DataFrame(), + prediction_dataframe: Optional[DataFrame] = None, do_corr_pairs: bool = True, ) -> DataFrame: """ @@ -822,7 +822,7 @@ class FreqaiDataKitchen: if tf not in corr_dataframes[p]: corr_dataframes[p][tf] = pd.DataFrame() - if not prediction_dataframe.empty: + if prediction_dataframe is not None and not prediction_dataframe.empty: dataframe = prediction_dataframe.copy() base_dataframes[self.config["timeframe"]] = dataframe.copy() else: