Skip to content

Commit a1a80bf

Browse files
feat(workflow_fix): added a TYPE_CHECKING block to safely import those classes for the linter without causing circular dependencies.
1 parent 90f10d9 commit a1a80bf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

engine/stress/stress_engine.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414

1515
import logging
1616
from dataclasses import dataclass
17+
from typing import TYPE_CHECKING
18+
19+
if TYPE_CHECKING:
20+
from engine.intelligence.trend_analyzer import TrendResult
21+
from engine.intelligence.anomaly_detector import AnomalyResult
1722

1823
from engine.config import (
1924
STRESS_HIGH_THRESHOLD,

0 commit comments

Comments
 (0)