From 7b987a0dd92e085ad8ae130ea94725118b83e72e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 02:01:03 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- data_structures/heap/fibonacci_heap.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data_structures/heap/fibonacci_heap.py b/data_structures/heap/fibonacci_heap.py index b1a182b35..d68fdde6b 100644 --- a/data_structures/heap/fibonacci_heap.py +++ b/data_structures/heap/fibonacci_heap.py @@ -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: