chore: Update to new code standard

This commit is contained in:
Matthias 2024-10-19 13:02:45 +02:00
parent 660af7ec70
commit 1a85dc9b99

View File

@ -18,7 +18,7 @@ Possible to change:
""" """
from datetime import datetime from datetime import datetime
from typing import Any, Dict from typing import Any
import numpy as np import numpy as np
from pandas import DataFrame from pandas import DataFrame
@ -50,8 +50,8 @@ class MultiMetricHyperOptLoss(IHyperOptLoss):
min_date: datetime, min_date: datetime,
max_date: datetime, max_date: datetime,
config: Config, config: Config,
processed: Dict[str, DataFrame], processed: dict[str, DataFrame],
backtest_stats: Dict[str, Any], backtest_stats: dict[str, Any],
**kwargs, **kwargs,
) -> float: ) -> float:
total_profit = results["profit_abs"].sum() total_profit = results["profit_abs"].sum()