chore: improve typing

This commit is contained in:
Matthias 2024-09-08 08:24:48 +02:00
parent 611a3ce138
commit a1681cdd63

View File

@ -12,7 +12,7 @@ from typing import Tuple
import numpy as np import numpy as np
import pandas as pd import pandas as pd
from freqtrade.constants import DEFAULT_ORDERFLOW_COLUMNS from freqtrade.constants import DEFAULT_ORDERFLOW_COLUMNS, Config
from freqtrade.enums import RunMode from freqtrade.enums import RunMode
from freqtrade.exceptions import DependencyException from freqtrade.exceptions import DependencyException
@ -63,7 +63,7 @@ def _calculate_ohlcv_candle_start_and_end(df: pd.DataFrame, timeframe: str):
def populate_dataframe_with_trades( def populate_dataframe_with_trades(
cached_grouped_trades: OrderedDict[Tuple[datetime, datetime], pd.DataFrame], cached_grouped_trades: OrderedDict[Tuple[datetime, datetime], pd.DataFrame],
config, config: Config,
dataframe: pd.DataFrame, dataframe: pd.DataFrame,
trades: pd.DataFrame, trades: pd.DataFrame,
) -> Tuple[pd.DataFrame, OrderedDict[Tuple[datetime, datetime], pd.DataFrame]]: ) -> Tuple[pd.DataFrame, OrderedDict[Tuple[datetime, datetime], pd.DataFrame]]: