Update return type comment

This commit is contained in:
Matthias 2020-07-12 10:23:09 +02:00
parent 33c3990972
commit b035d9e267
3 changed files with 5 additions and 4 deletions

View File

@ -99,9 +99,10 @@ def start_list_data(args: Dict[str, Any]) -> None:
config = setup_utils_configuration(args, RunMode.UTIL_NO_EXCHANGE)
from freqtrade.data.history.idatahandler import get_datahandlerclass
from freqtrade.data.history.idatahandler import get_datahandler
from tabulate import tabulate
dhc = get_datahandlerclass(config['dataformat_ohlcv'])
dhc = get_datahandler(config['datadir'], config['dataformat_ohlcv'])
paircombs = dhc.ohlcv_get_available_data(config['datadir'])
print(f"Found {len(paircombs)} pair / timeframe combinations.")

View File

@ -34,7 +34,7 @@ class IDataHandler(ABC):
"""
Returns a list of all pairs with ohlcv data available in this datadir
:param datadir: Directory to search for ohlcv files
:return: List of Pair
:return: List of Tuples of (pair, timeframe)
"""
@abstractclassmethod

View File

@ -27,7 +27,7 @@ class JsonDataHandler(IDataHandler):
"""
Returns a list of all pairs with ohlcv data available in this datadir
:param datadir: Directory to search for ohlcv files
:return: List of Pair
:return: List of Tuples of (pair, timeframe)
"""
_tmp = [re.search(r'^([a-zA-Z_]+)\-(\d+\S+)(?=.json)', p.name)
for p in datadir.glob(f"*.{cls._get_file_extension()}")]