修复测试:移除 momentum_spike 断言 + Python 3.8 类型兼容

build_trading_alerts 已移除 momentum_spike 规则,对应测试也更新。
get_airport_obs_recent 返回类型改用 List[Dict] 兼容 3.8。

Tested: pytest 176 passed
This commit is contained in:
2569718930@qq.com
2026-05-12 19:13:06 +08:00
parent a5522b4b16
commit 203094a97c
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -1867,7 +1867,7 @@ class DBManager:
def get_airport_obs_recent(
self, icao: str, minutes: int = 30
) -> list[dict[str, Any]]:
) -> List[Dict[str, Any]]:
with self._get_connection() as conn:
conn.row_factory = sqlite3.Row
rows = conn.execute(