style(类型闸): level_table 图校验 by_id 改参数化字典——清偿迭代35卡② 引入的 S9 存量红
validate_graph 拆段时新写的 `var by_id: Dictionary = well["by_id"]` 命中 S9 R1 (显式非参数化容器注解),使 09 静态扫描在代码域批恒红。改为 Dictionary[int, Dictionary] +assign 显式收编(Variant 不能隐式赋给参数化字典,实测报错后改此形态),行为逐字不变。 单测 level_table_validate_test 17 项全绿。
This commit is contained in:
1 parent
f7dc739d16
commit
b3f9b448e6
1 file changed
+2
-1
@@ -53,7 +53,8 @@ static func validate_graph(nodes: Array) -> Array:
|
||||
var well := _check_nodes_wellformed(nodes)
|
||||
if not (well["errs"] as Array).is_empty():
|
||||
return well["errs"]
|
||||
var by_id: Dictionary = well["by_id"]
|
||||
var by_id: Dictionary[int, Dictionary] = {}
|
||||
by_id.assign(well["by_id"])
|
||||
var edges := _check_edges(by_id, well["indeg"])
|
||||
if not (edges["errs"] as Array).is_empty():
|
||||
return edges["errs"]
|
||||
|
||||
Reference in new issue
Block a user