Fix flake adn mypy

This commit is contained in:
Matthias 2018-12-03 19:29:35 +01:00
parent 26187ef6c7
commit 3360e777a1
3 changed files with 4 additions and 4 deletions

View File

@ -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 \

View File

@ -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__)

View File

@ -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