From dba7f9968b7d219757abee6270e2e9c60f57d520 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 7 Jul 2024 12:58:44 +0200 Subject: [PATCH] chore: fix minor type gotcha --- freqtrade/optimize/hyperopt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index b19fca9dc..99b78d09f 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -260,7 +260,7 @@ class Hyperopt: result["max_open_trades"] = {"max_open_trades": strategy.max_open_trades} return result - def print_results(self, results) -> None: + def print_results(self, results: Dict[str, Any]) -> None: """ Log results if it is better than any previous evaluation TODO: this should be moved to HyperoptTools too @@ -271,7 +271,7 @@ class Hyperopt: print( HyperoptTools.get_result_table( self.config, - results, + [results], self.total_epochs, self.print_all, self.print_colorized,