From 1a85dc9b996394bffa276a137532b33014e5c169 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 19 Oct 2024 13:02:45 +0200 Subject: [PATCH] chore: Update to new code standard --- .../optimize/hyperopt_loss/hyperopt_loss_multi_metric.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/optimize/hyperopt_loss/hyperopt_loss_multi_metric.py b/freqtrade/optimize/hyperopt_loss/hyperopt_loss_multi_metric.py index d4a399711..3a11a938d 100644 --- a/freqtrade/optimize/hyperopt_loss/hyperopt_loss_multi_metric.py +++ b/freqtrade/optimize/hyperopt_loss/hyperopt_loss_multi_metric.py @@ -18,7 +18,7 @@ Possible to change: """ from datetime import datetime -from typing import Any, Dict +from typing import Any import numpy as np from pandas import DataFrame @@ -50,8 +50,8 @@ class MultiMetricHyperOptLoss(IHyperOptLoss): min_date: datetime, max_date: datetime, config: Config, - processed: Dict[str, DataFrame], - backtest_stats: Dict[str, Any], + processed: dict[str, DataFrame], + backtest_stats: dict[str, Any], **kwargs, ) -> float: total_profit = results["profit_abs"].sum()