Fix ci failure

This commit is contained in:
Matthias 2021-08-03 07:21:11 +02:00
parent 4ab03f7e37
commit dfc17f2bd1

View File

@ -103,7 +103,8 @@ class Hyperopt:
self.current_best_epoch: Optional[Dict[str, Any]] = None
if not self.auto_hyperopt:
# Populate "fallback" functions here (hasattr is slow so should not be run during "regular" operations)
# Populate "fallback" functions here
# (hasattr is slow so should not be run during "regular" operations)
if hasattr(self.custom_hyperopt, 'populate_indicators'):
self.backtesting.strategy.advise_indicators = ( # type: ignore
self.custom_hyperopt.populate_indicators) # type: ignore