Skip to content

Commit 74530a2

Browse files
committed
fix: resolve flake8 F821/F401 in index_command
1 parent c474e17 commit 74530a2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

investing_algorithm_framework/cli/index_command.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
import logging
1313
from dataclasses import fields as dc_fields
1414
from pathlib import Path
15-
from typing import Any, Dict, Iterable, List, Optional, Sequence
15+
from typing import Any, Dict, Iterable, List, Optional, Sequence, TYPE_CHECKING
16+
17+
if TYPE_CHECKING:
18+
from investing_algorithm_framework.domain import BacktestEvaluationFocus
1619

1720
from investing_algorithm_framework.domain import (
1821
Backtest,
@@ -328,7 +331,6 @@ def _rank_index_weighted(
328331
index — no Parquet decode, no :class:`Backtest` instantiation.
329332
"""
330333
import math
331-
from investing_algorithm_framework.domain import BacktestEvaluationFocus
332334
from investing_algorithm_framework.analysis.ranking import (
333335
create_weights, normalize,
334336
)

0 commit comments

Comments
 (0)