Skip to content

Commit 69833e9

Browse files
committed
fixed mypy issue
Signed-off-by: Arya Pratap Singh <notaryasingh@gmail.com>
1 parent c403f81 commit 69833e9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

data_structures/heap/fibonacci_heap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def insert(self, key: Any, value: Any = None) -> None:
8484
node.right = node
8585
else:
8686
# Insert into root list
87+
assert self.min_node.right is not None
88+
assert self.min_node.left is not None
8789
node.left = self.min_node
8890
node.right = self.min_node.right
8991
self.min_node.right.left = node

0 commit comments

Comments
 (0)