[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-11-25 02:01:03 +00:00
parent 502953aa70
commit 7b987a0dd9

View File

@ -355,8 +355,7 @@ class FibonacciHeap:
Args:
node_to_cut (FibonacciHeapNode): The node to be cut recursively.
"""
temp_parent = node_to_cut.parent
if temp_parent:
if temp_parent := node_to_cut.parent:
if not node_to_cut.mark:
node_to_cut.mark = True
else: