Fix typehints

This commit is contained in:
Matthias 2018-08-01 21:58:32 +02:00
parent 915160f21f
commit 9c08cdc81d
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ class FreqtradeBot(object):
self.persistence = None
self.exchange = Exchange(self.config)
self._init_modules()
self._klines = {}
self._klines: Dict[str, List[Dict]] = {}
def _init_modules(self) -> None:
"""

View File

@ -6,7 +6,7 @@ import logging
from abc import ABC, abstractmethod
from datetime import datetime
from enum import Enum
from typing import Dict, List, NamedTuple, Tuple
from typing import Dict, List, NamedTuple, Optional, Tuple
import warnings
import arrow
@ -118,7 +118,7 @@ class IStrategy(ABC):
dataframe = self.advise_sell(dataframe, metadata)
return dataframe
def get_signal(self, pair: str, interval: str, ticker_hist: List[Dict]) -> Tuple[bool, bool]:
def get_signal(self, pair: str, interval: str, ticker_hist: Optional[List[Dict]]) -> Tuple[bool, bool]:
"""
Calculates current signal based several technical analysis indicators
:param pair: pair in format ANT/BTC