[SQUASH] Remove mypy import.

This commit is contained in:
Rokas Kupstys 2021-09-18 15:27:58 +03:00
parent e4ca42faec
commit 713e7819f7
1 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,5 @@
from typing import Any, Callable, NamedTuple, Optional, Union
from mypy_extensions import KwArg
from pandas import DataFrame
from freqtrade.exceptions import OperationalException
@ -13,12 +12,12 @@ PopulateIndicators = Callable[[Any, DataFrame, dict], DataFrame]
class InformativeData(NamedTuple):
asset: Optional[str]
timeframe: str
fmt: Union[str, Callable[[KwArg(str)], str], None]
fmt: Union[str, Callable[[Any], str], None]
ffill: bool
def informative(timeframe: str, asset: str = '',
fmt: Optional[Union[str, Callable[[KwArg(str)], str]]] = None,
fmt: Optional[Union[str, Callable[[Any], str]]] = None,
ffill: bool = True) -> Callable[[PopulateIndicators], PopulateIndicators]:
"""
A decorator for populate_indicators_Nn(self, dataframe, metadata), allowing these functions to