diff --git a/searches/double_linear_search_recursion.py b/searches/double_linear_search_recursion.py index 1c483e974ca7..16d55d863cc8 100644 --- a/searches/double_linear_search_recursion.py +++ b/searches/double_linear_search_recursion.py @@ -1,4 +1,7 @@ -def search(list_data: list, key: int, left: int = 0, right: int = 0) -> int: +from __future__ import annotations + + +def search(list_data: list[int], key: int, left: int = 0, right: int = 0) -> int: """ Iterate through the array to find the index of key using recursion. :param list_data: the list to be searched