satisfied flake8 again

This commit is contained in:
Gert Wohlgemuth 2018-06-19 10:00:41 -07:00
parent 77e46ebc56
commit 1c8b29b848
2 changed files with 6 additions and 4 deletions

View File

@ -35,7 +35,8 @@ class IStrategy(ABC):
:param dataframe: Raw data from the exchange and parsed by parse_ticker_dataframe() :param dataframe: Raw data from the exchange and parsed by parse_ticker_dataframe()
:return: a Dataframe with all mandatory indicators for the strategies :return: a Dataframe with all mandatory indicators for the strategies
""" """
warnings.warn("deprecated - please replace this method with advise_indicators!", DeprecationWarning) warnings.warn("deprecated - please replace this method with advise_indicators!",
DeprecationWarning)
return dataframe return dataframe
def populate_buy_trend(self, dataframe: DataFrame) -> DataFrame: def populate_buy_trend(self, dataframe: DataFrame) -> DataFrame:
@ -44,7 +45,8 @@ class IStrategy(ABC):
:param dataframe: DataFrame :param dataframe: DataFrame
:return: DataFrame with buy column :return: DataFrame with buy column
""" """
warnings.warn("deprecated - please replace this method with advise_buy!", DeprecationWarning) warnings.warn("deprecated - please replace this method with advise_buy!",
DeprecationWarning)
dataframe.loc[(), 'buy'] = 0 dataframe.loc[(), 'buy'] = 0
return dataframe return dataframe
@ -54,7 +56,8 @@ class IStrategy(ABC):
:param dataframe: DataFrame :param dataframe: DataFrame
:return: DataFrame with sell column :return: DataFrame with sell column
""" """
warnings.warn("deprecated - please replace this method with advise_sell!", DeprecationWarning) warnings.warn("deprecated - please replace this method with advise_sell!",
DeprecationWarning)
dataframe.loc[(), 'sell'] = 0 dataframe.loc[(), 'sell'] = 0
return dataframe return dataframe

View File

@ -35,7 +35,6 @@ class StrategyResolver(object):
self.strategy: IStrategy = self._load_strategy(strategy_name, self.strategy: IStrategy = self._load_strategy(strategy_name,
extra_dir=config.get('strategy_path')) extra_dir=config.get('strategy_path'))
# Set attributes # Set attributes
# Check if we need to override configuration # Check if we need to override configuration
if 'minimal_roi' in config: if 'minimal_roi' in config: