Skip to content

Commit b3304eb

Browse files
committed
Fix type hint
1 parent 42a1f27 commit b3304eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

data_structures/linked_list/merge_sort_linked_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, data: int) -> None:
2020
self.next: Node | None = None
2121

2222

23-
def get_middle(head: Node) -> Node:
23+
def get_middle(head: Node | None) -> Node | None:
2424
"""
2525
Find the middle node of the linked list using the slow and fast pointer technique.
2626

0 commit comments

Comments
 (0)