Skip to content

Commit b9c7712

Browse files
committed
chore: add typing for hyperopt-pickle-magic
1 parent f060548 commit b9c7712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freqtrade/optimize/hyperopt/hyperopt_optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def prepare_hyperopt(self) -> None:
114114
def get_strategy_name(self) -> str:
115115
return self.backtesting.strategy.get_strategy_name()
116116

117-
def hyperopt_pickle_magic(self, bases) -> None:
117+
def hyperopt_pickle_magic(self, bases: tuple[type, ...]) -> None:
118118
"""
119119
Hyperopt magic to allow strategy inheritance across files.
120120
For this to properly work, we need to register the module of the imported class

0 commit comments

Comments
 (0)