fix: fix type annotation, remove unused parameter, improve import_class errors

This commit is contained in:
TPTBusiness
2026-05-03 00:22:16 +02:00
parent d44dcb7111
commit bc15434e02
3 changed files with 18 additions and 6 deletions
@@ -67,7 +67,6 @@ def _cross_check_with_vbt(
close: pd.Series,
position: pd.Series,
txn_cost: float,
manual_total_return: float,
freq: str,
) -> float | None:
"""Run a vectorbt simulation and return its total_return for comparison."""
@@ -264,7 +263,6 @@ def backtest_signal(
close=close,
position=position,
txn_cost=txn_cost,
manual_total_return=total_return,
freq=freq,
)