Fix mypy hickup after changing list to tuples
This commit is contained in:
parent
7b138ef3b4
commit
d6cdfc58af
@ -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.
|
||||
|
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user