mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
fix typehinting
This commit is contained in:
parent
9aa468adda
commit
0d6dffdc7e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user