chore: improve typing of new functionality
This commit is contained in:
@@ -69,7 +69,7 @@ def generate_rejected_signals(
|
|||||||
|
|
||||||
|
|
||||||
def _generate_result_line(
|
def _generate_result_line(
|
||||||
result: DataFrame, starting_balance: int, first_column: str | list[str]
|
result: DataFrame, starting_balance: float, first_column: str | list[str]
|
||||||
) -> dict:
|
) -> dict:
|
||||||
"""
|
"""
|
||||||
Generate one result dict, with "first_column" as key.
|
Generate one result dict, with "first_column" as key.
|
||||||
@@ -111,7 +111,7 @@ def _generate_result_line(
|
|||||||
def generate_pair_metrics(
|
def generate_pair_metrics(
|
||||||
pairlist: list[str],
|
pairlist: list[str],
|
||||||
stake_currency: str,
|
stake_currency: str,
|
||||||
starting_balance: int,
|
starting_balance: float,
|
||||||
results: DataFrame,
|
results: DataFrame,
|
||||||
skip_nan: bool = False,
|
skip_nan: bool = False,
|
||||||
) -> list[dict]:
|
) -> list[dict]:
|
||||||
@@ -144,7 +144,7 @@ def generate_pair_metrics(
|
|||||||
|
|
||||||
def generate_tag_metrics(
|
def generate_tag_metrics(
|
||||||
tag_type: Literal["enter_tag", "exit_reason"] | list[Literal["enter_tag", "exit_reason"]],
|
tag_type: Literal["enter_tag", "exit_reason"] | list[Literal["enter_tag", "exit_reason"]],
|
||||||
starting_balance: int,
|
starting_balance: float,
|
||||||
results: DataFrame,
|
results: DataFrame,
|
||||||
skip_nan: bool = False,
|
skip_nan: bool = False,
|
||||||
) -> list[dict]:
|
) -> list[dict]:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from pytest import Config
|
from freqtrade.constants import Config
|
||||||
|
|
||||||
|
|
||||||
def get_dry_run_wallet(config: Config) -> int | float:
|
def get_dry_run_wallet(config: Config) -> int | float:
|
||||||
|
|||||||
Reference in New Issue
Block a user