From d6cdfc58afcd5345ebdef573e1683ea29e3146f4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 21 Jan 2019 20:19:34 +0100 Subject: [PATCH] Fix mypy hickup after changing list to tuples --- freqtrade/data/dataprovider.py | 2 +- freqtrade/tests/data/test_dataprovider.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/data/dataprovider.py b/freqtrade/data/dataprovider.py index fdb3714fc..ce1b480f9 100644 --- a/freqtrade/data/dataprovider.py +++ b/freqtrade/data/dataprovider.py @@ -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. diff --git a/freqtrade/tests/data/test_dataprovider.py b/freqtrade/tests/data/test_dataprovider.py index 89b709572..834ff94b5 100644 --- a/freqtrade/tests/data/test_dataprovider.py +++ b/freqtrade/tests/data/test_dataprovider.py @@ -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)]