adding “optional” in str

This commit is contained in:
misagh 2018-11-21 19:58:28 +01:00
parent 88f61581d9
commit b129750f4d

View File

@ -1,7 +1,7 @@
# pragma pylint: disable=W0603 # pragma pylint: disable=W0603
""" Wallet """ """ Wallet """
import logging import logging
from typing import Dict, Any, NamedTuple from typing import Dict, Any, NamedTuple, Optional
from collections import namedtuple from collections import namedtuple
from freqtrade.exchange import Exchange from freqtrade.exchange import Exchange
@ -9,8 +9,8 @@ logger = logging.getLogger(__name__)
class Wallet(NamedTuple): class Wallet(NamedTuple):
exchange: str = None exchange: Optional[str] = None
currency: str = None currency: Optional[str] = None
free: float = 0 free: float = 0
used: float = 0 used: float = 0
total: float = 0 total: float = 0