修复测试:移除 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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user