diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index d8f789e6a..ebe30cec6 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -60,10 +60,10 @@ class FreqtradeBot(object): self.exchange = Exchange(self.config) self.wallets = Wallets(self.exchange) if self.config.get('dynamic_whitelist', None): - self.pairlists = VolumePairList(self, self.config) + self.pairlists: StaticPairList = VolumePairList(self, self.config) else: - self.pairlists = StaticPairList(self, self.config) + self.pairlists: StaticPairList = StaticPairList(self, self.config) # Initializing Edge only if enabled self.edge = Edge(self.config, self.exchange, self.strategy) if \ diff --git a/freqtrade/pairlist/StaticPairList.py b/freqtrade/pairlist/StaticPairList.py index 8466d7b82..24ad30deb 100644 --- a/freqtrade/pairlist/StaticPairList.py +++ b/freqtrade/pairlist/StaticPairList.py @@ -5,7 +5,7 @@ Provides lists as configured in config.json """ import logging -from typing import List, Optional +from typing import List logger = logging.getLogger(__name__) diff --git a/freqtrade/tests/test_acl_pair.py b/freqtrade/tests/test_acl_pair.py index 997c171ad..8e41ad860 100644 --- a/freqtrade/tests/test_acl_pair.py +++ b/freqtrade/tests/test_acl_pair.py @@ -50,7 +50,7 @@ def test_refresh_pairlists(mocker, markets, whitelist_conf): # List ordered by BaseVolume whitelist = ['ETH/BTC', 'TKN/BTC'] # Ensure all except those in whitelist are removed - assert set(whitelist)== set(freqtradebot.pairlists.whitelist) + assert set(whitelist) == set(freqtradebot.pairlists.whitelist) assert whitelist_conf['exchange']['pair_blacklist'] == freqtradebot.pairlists.blacklist