IHyperopt: all methods static, somef ixes for mypy

This commit is contained in:
Matthias
2018-11-20 19:41:07 +01:00
parent 7757c53b06
commit a3b6004115
4 changed files with 20 additions and 11 deletions

View File

@@ -45,7 +45,8 @@ class SampleHyperOpts(IHyperOpt):
dataframe['sar'] = ta.SAR(dataframe)
return dataframe
def buy_strategy_generator(self, params: Dict[str, Any]) -> Callable:
@staticmethod
def buy_strategy_generator(params: Dict[str, Any]) -> Callable:
"""
Define the buy strategy parameters to be used by hyperopt
"""