docs: Updated syntax

This commit is contained in:
Matthias
2024-11-15 07:11:54 +01:00
parent 52b4ae5eae
commit d565c40f4b
+8 -5
View File
@@ -582,11 +582,14 @@ When hyperopting, use of the hyperoptable parameter `.value` attribute is not su
??? info "Full documentation" ??? info "Full documentation"
``` python ``` python
def informative(timeframe: str, asset: str = '', def informative(
fmt: Optional[Union[str, Callable[[KwArg(str)], str]]] = None, timeframe: str,
*, asset: str = "",
candle_type: Optional[CandleType] = None, fmt: str | Callable[[Any], str] | None = None,
ffill: bool = True) -> Callable[[PopulateIndicators], PopulateIndicators]: *,
candle_type: CandleType | str | None = None,
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
define informative indicators. define informative indicators.