Fix mypy errors introduced by Arrow update

This commit is contained in:
Matthias 2021-03-01 08:57:57 +01:00
parent 4537a48988
commit 2083cf6ddf

View File

@ -443,11 +443,9 @@ class Backtesting:
data, timerange = self.load_bt_data() data, timerange = self.load_bt_data()
min_date = None
max_date = None
for strat in self.strategylist: for strat in self.strategylist:
min_date, max_date = self.backtest_one_strategy(strat, data, timerange) min_date, max_date = self.backtest_one_strategy(strat, data, timerange)
if len(self.strategylist) > 0:
stats = generate_backtest_stats(data, self.all_results, stats = generate_backtest_stats(data, self.all_results,
min_date=min_date, max_date=max_date) min_date=min_date, max_date=max_date)