Add some mypy ignores

This commit is contained in:
Matthias 2019-07-15 22:59:28 +02:00
parent 55e8092cbf
commit 7be25313a5
2 changed files with 3 additions and 3 deletions

View File

@ -73,9 +73,9 @@ class Hyperopt(Backtesting):
# Assign loss function
if self.config.get('loss_function', 'legacy') == 'legacy':
self.calculate_loss = hyperopt_loss_legacy
self.calculate_loss = hyperopt_loss_legacy # type: ignore
elif self.config.get('loss_function', 'sharpe') == 'sharpe':
self.calculate_loss = hyperopt_loss_sharpe
self.calculate_loss = hyperopt_loss_sharpe # type: ignore
elif (self.config['loss_function'] == 'custom' and
hasattr(self.custom_hyperopt, 'hyperopt_loss_custom')):
self.calculate_loss = self.custom_hyperopt.hyperopt_loss_custom # type: ignore