mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-13 09:40:29 +00:00
Fix for passing CI
This commit is contained in:
@@ -6,6 +6,7 @@ Hyperoptimization.
|
||||
"""
|
||||
|
||||
from typing import Any, Dict
|
||||
|
||||
from freqtrade.optimize.hyperopt import IHyperOptLoss
|
||||
|
||||
class MaxDrawDownPerPairHyperOptLoss(IHyperOptLoss):
|
||||
@@ -22,8 +23,7 @@ class MaxDrawDownPerPairHyperOptLoss(IHyperOptLoss):
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
def hyperopt_loss_function(backtest_stats: Dict[str, Any],
|
||||
*args, **kwargs) -> float:
|
||||
def hyperopt_loss_function(backtest_stats: dict[str, Any], *args, **kwargs) -> float:
|
||||
"""
|
||||
Objective function, returns smaller number for better results.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user