Skip to content

Commit a53cab8

Browse files
authored
Update binary_search_recursion.py
1 parent 2284744 commit a53cab8

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎searches/binary_search_recursion.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@
77
from __future__ import annotations
88

99
from collections.abc import Sequence
10-
from typing import TypeVar
1110

12-
T = TypeVar("T")
1311

14-
15-
def binary_search_recursive(
12+
def binary_search_recursive[T](
1613
arr: Sequence[T],
1714
target: T,
1815
left: int = 0,

0 commit comments

Comments
 (0)