Fix a Flake8 diagnostic.

This commit is contained in:
pleroy
2025-07-29 18:55:51 +02:00
parent 5635d2d8df
commit 88d3f1a7a0

View File

@@ -646,7 +646,7 @@ class KernelDG(nx.DiGraph):
graph.nodes[n]["style"] += ",filled"
graph.nodes[n]["fillcolor"] = color
if (
(max_color >= 4 and color in (1, max_color))
(max_color >= 4 and color in (1, max_color))
or (max_color >= 10 and color in (1, 2, max_color - 1 , max_color))
):
graph.nodes[n]["fontcolor"] = "white"