Skip to content

Commit 3f2defc

Browse files
committed
Fix imports
1 parent 609877f commit 3f2defc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

investing_algorithm_framework/domain/backtesting/combine_backtests.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from typing import List
22

3-
from .backtest import Backtest
43
from .backtest_summary_metrics import BacktestSummaryMetrics
54
from .backtest_metrics import BacktestMetrics
65

@@ -27,9 +26,7 @@ def safe_weighted_mean(values, weights):
2726
) / total_weight if total_weight > 0 else None
2827

2928

30-
def combine_backtests(
31-
backtests: List[Backtest],
32-
) -> Backtest:
29+
def combine_backtests(backtests):
3330
"""
3431
Combine multiple backtests into a single backtest by aggregating
3532
their results.
@@ -72,6 +69,8 @@ def combine_backtests(
7269
risk_free_rate = backtest.risk_free_rate
7370
break
7471

72+
from .backtest import Backtest
73+
7574
backtest = Backtest(
7675
backtest_summary=summary,
7776
metadata=metadata,

0 commit comments

Comments
 (0)