mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 14:00:38 +00:00
chore: add typing for hyperopt-pickle-magic
This commit is contained in:
@@ -114,7 +114,7 @@ class HyperOptimizer:
|
||||
def get_strategy_name(self) -> str:
|
||||
return self.backtesting.strategy.get_strategy_name()
|
||||
|
||||
def hyperopt_pickle_magic(self, bases) -> None:
|
||||
def hyperopt_pickle_magic(self, bases: tuple[type, ...]) -> None:
|
||||
"""
|
||||
Hyperopt magic to allow strategy inheritance across files.
|
||||
For this to properly work, we need to register the module of the imported class
|
||||
|
||||
Reference in New Issue
Block a user