mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
[SQUASH] Remove mypy import.
This commit is contained in:
parent
e4ca42faec
commit
713e7819f7
|
@ -1,6 +1,5 @@
|
||||||
from typing import Any, Callable, NamedTuple, Optional, Union
|
from typing import Any, Callable, NamedTuple, Optional, Union
|
||||||
|
|
||||||
from mypy_extensions import KwArg
|
|
||||||
from pandas import DataFrame
|
from pandas import DataFrame
|
||||||
|
|
||||||
from freqtrade.exceptions import OperationalException
|
from freqtrade.exceptions import OperationalException
|
||||||
|
@ -13,12 +12,12 @@ PopulateIndicators = Callable[[Any, DataFrame, dict], DataFrame]
|
||||||
class InformativeData(NamedTuple):
|
class InformativeData(NamedTuple):
|
||||||
asset: Optional[str]
|
asset: Optional[str]
|
||||||
timeframe: str
|
timeframe: str
|
||||||
fmt: Union[str, Callable[[KwArg(str)], str], None]
|
fmt: Union[str, Callable[[Any], str], None]
|
||||||
ffill: bool
|
ffill: bool
|
||||||
|
|
||||||
|
|
||||||
def informative(timeframe: str, asset: str = '',
|
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]:
|
ffill: bool = True) -> Callable[[PopulateIndicators], PopulateIndicators]:
|
||||||
"""
|
"""
|
||||||
A decorator for populate_indicators_Nn(self, dataframe, metadata), allowing these functions to
|
A decorator for populate_indicators_Nn(self, dataframe, metadata), allowing these functions to
|
||||||
|
|
Loading…
Reference in New Issue
Block a user