There was an error while loading. Please reload this page.
1 parent d81f4d0 commit bf627dcCopy full SHA for bf627dc
1 file changed
sorts/binary_insertion_sort.py
@@ -20,7 +20,7 @@ def __lt__(self, other: object, /) -> bool: ...
20
T = TypeVar("T", bound=Comparable)
21
22
23
-def binary_insertion_sort(collection: list[T]) -> list[T]:
+def binary_insertion_sort[T: Comparable](collection: list[T]) -> list[T]:
24
"""
25
Sorts a list using the binary insertion sort algorithm.
26
0 commit comments