Fix mypy hickup after changing list to tuples

This commit is contained in:
Matthias 2019-01-21 20:19:34 +01:00
parent 7b138ef3b4
commit d6cdfc58af
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ class DataProvider(object):
self._exchange.refresh_latest_ohlcv(pairlist)
@property
def available_pairs(self) -> List[str]:
def available_pairs(self) -> List[Tuple[str, str]]:
"""
Return a list of tuples containing pair, tick_interval for which data is currently cached.
Should be whitelist + open trades.

View File

@ -60,4 +60,4 @@ def test_available_pairs(mocker, default_conf, ticker_history):
dp = DataProvider(default_conf, exchange)
assert len(dp.available_pairs) == 2
assert dp.available_pairs == ['XRP/BTC', 'UNITTEST/BTC']
assert dp.available_pairs == [('XRP/BTC', tick_interval), ('UNITTEST/BTC', tick_interval)]