mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
adding “optional” in str
This commit is contained in:
parent
88f61581d9
commit
b129750f4d
|
@ -1,7 +1,7 @@
|
|||
# pragma pylint: disable=W0603
|
||||
""" Wallet """
|
||||
import logging
|
||||
from typing import Dict, Any, NamedTuple
|
||||
from typing import Dict, Any, NamedTuple, Optional
|
||||
from collections import namedtuple
|
||||
from freqtrade.exchange import Exchange
|
||||
|
||||
|
@ -9,8 +9,8 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
|
||||
class Wallet(NamedTuple):
|
||||
exchange: str = None
|
||||
currency: str = None
|
||||
exchange: Optional[str] = None
|
||||
currency: Optional[str] = None
|
||||
free: float = 0
|
||||
used: float = 0
|
||||
total: float = 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user