disambiguate duplicate variable name 'node' within inner loop for readability

pull/60/head
Alfredo 2023-11-15 10:56:01 -05:00 zatwierdzone przez Carson Katri
rodzic 5cf07a1af5
commit f0d43fb92d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -29,7 +29,7 @@ def _arrange(node_tree, padding: typing.Tuple[float, float] = (50, 25)):
column_index = {}
for node in reversed(sorted_nodes):
column_index[node] = max([ column_index[node] for node in graph[node] ], default=-1) + 1
column_index[node] = max([ column_index[adj_node] for adj_node in graph[node] ], default=-1) + 1
if column_index[node] == len(columns):
columns.append([node])
else: