diff --git a/data_structures/linked_list/sorted_linked_list.py b/data_structures/linked_list/sorted_linked_list.py index 99e9a1f6f..114a8ddd3 100644 --- a/data_structures/linked_list/sorted_linked_list.py +++ b/data_structures/linked_list/sorted_linked_list.py @@ -336,7 +336,7 @@ class SortedLinkedList: self.tail = other_list.tail return else: - temp : Optional[Node] = other_list.head + temp: Optional[Node] = other_list.head while temp: self.insert(temp.data)