From 0d6dffdc7ecfa71f51816b46ef1c39239c9741b2 Mon Sep 17 00:00:00 2001 From: xmatthias Date: Wed, 30 May 2018 22:09:03 +0200 Subject: [PATCH] fix typehinting --- freqtrade/fiat_convert.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/fiat_convert.py b/freqtrade/fiat_convert.py index 3d268fdbe..88eb702c9 100644 --- a/freqtrade/fiat_convert.py +++ b/freqtrade/fiat_convert.py @@ -5,7 +5,7 @@ e.g BTC to USD import logging import time -from typing import Dict +from typing import Dict, List from coinmarketcap import Market from requests.exceptions import RequestException @@ -65,7 +65,7 @@ class CryptoToFiatConverter(object): This object is also a Singleton """ __instance = None - _coinmarketcap = None + _coinmarketcap: Market = None # Constants SUPPORTED_FIAT = [ @@ -87,7 +87,7 @@ class CryptoToFiatConverter(object): return CryptoToFiatConverter.__instance def __init__(self) -> None: - self._pairs = [] + self._pairs: List[CryptoFiat] = [] self._load_cryptomap() def _load_cryptomap(self) -> None: