From 0118f453af9f14fb9f6044a95861cf3e7fe69d6e Mon Sep 17 00:00:00 2001 From: shriya-97 Date: Wed, 30 Sep 2026 19:17:41 +0530 Subject: [PATCH 1/2] code: add modern list type hint and annotations to double_linear_search_recursion --- searches/double_linear_search_recursion.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/searches/double_linear_search_recursion.py b/searches/double_linear_search_recursion.py index 1c483e974ca7..a4f129ed5f5f 100644 --- a/searches/double_linear_search_recursion.py +++ b/searches/double_linear_search_recursion.py @@ -1,4 +1,5 @@ -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 From f12705c64cbea05d9cabb2add83aa945c766c56f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 30 Sep 2026 13:49:46 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- searches/double_linear_search_recursion.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/searches/double_linear_search_recursion.py b/searches/double_linear_search_recursion.py index a4f129ed5f5f..16d55d863cc8 100644 --- a/searches/double_linear_search_recursion.py +++ b/searches/double_linear_search_recursion.py @@ -1,4 +1,6 @@ -from __future__ import annotations +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.