Remove unnecessary comprehension
Signed-off-by: shubhendra <withshubh@gmail.com>
This commit is contained in:
parent
4f5a1e94a7
commit
62d99a0b74
@ -196,9 +196,9 @@ class StrategyResolver(IResolver):
|
|||||||
strategy._populate_fun_len = len(getfullargspec(strategy.populate_indicators).args)
|
strategy._populate_fun_len = len(getfullargspec(strategy.populate_indicators).args)
|
||||||
strategy._buy_fun_len = len(getfullargspec(strategy.populate_buy_trend).args)
|
strategy._buy_fun_len = len(getfullargspec(strategy.populate_buy_trend).args)
|
||||||
strategy._sell_fun_len = len(getfullargspec(strategy.populate_sell_trend).args)
|
strategy._sell_fun_len = len(getfullargspec(strategy.populate_sell_trend).args)
|
||||||
if any([x == 2 for x in [strategy._populate_fun_len,
|
if any(x == 2 for x in [strategy._populate_fun_len,
|
||||||
strategy._buy_fun_len,
|
strategy._buy_fun_len,
|
||||||
strategy._sell_fun_len]]):
|
strategy._sell_fun_len]):
|
||||||
strategy.INTERFACE_VERSION = 1
|
strategy.INTERFACE_VERSION = 1
|
||||||
|
|
||||||
return strategy
|
return strategy
|
||||||
|
Loading…
Reference in New Issue
Block a user