Fix flake adn mypy
This commit is contained in:
parent
26187ef6c7
commit
3360e777a1
@ -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 \
|
||||
|
@ -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__)
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user