Refactor the comparison involving not

Signed-off-by: shubhendra <withshubh@gmail.com>
This commit is contained in:
shubhendra
2021-03-21 17:14:35 +05:30
committed by Shubhendra
parent 4d81834912
commit f47dc31786
5 changed files with 4 additions and 21 deletions

View File

@@ -197,8 +197,8 @@ class StrategyResolver(IResolver):
strategy._buy_fun_len = len(getfullargspec(strategy.populate_buy_trend).args)
strategy._sell_fun_len = len(getfullargspec(strategy.populate_sell_trend).args)
if any(x == 2 for x in [strategy._populate_fun_len,
strategy._buy_fun_len,
strategy._sell_fun_len]):
strategy._buy_fun_len,
strategy._sell_fun_len]):
strategy.INTERFACE_VERSION = 1
return strategy