Skip to content

Commit 32e1ee4

Browse files
committed
code: update list type hints to generic Any per code review
1 parent 0118f45 commit 32e1ee4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎searches/double_linear_search_recursion.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from __future__ import annotations
2-
def search(list_data: list[int], key: int, left: int = 0, right: int = 0) -> int:
1+
from typing import Any
2+
def search(list_data: list[Any], key: Any, left: int = 0, right: int = 0) -> int:
33
"""
44
Iterate through the array to find the index of key using recursion.
55
:param list_data: the list to be searched

0 commit comments

Comments
 (0)