chore: follow-ups for PR #231/#233 reviews

- monitor_rules: raise from None in remind_date validation (B904)
- lots: log warning on asset-type fallback to stock (fail-open traceability)
- matrix: demote turnover NaN-column notice to debug
This commit is contained in:
shy3130
2026-09-03 12:45:24 +08:00
parent 8b12fc7a65
commit 41205b197c
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1435,7 +1435,7 @@ def _populate_matrix_derived_arrays(
# 异常, 由 _resolve_matrix_storage_fields 的 vector 装载路径显式失败。
if "float_shares" in vector_fields:
raise ValueError("matrix turnover_rate requires float_shares")
logger.info(
logger.debug(
"turnover_rate unavailable (asset has no float_shares); keeping NaN column"
)
else: