Skip to content

Commit bf627dc

Browse files
authored
Update binary_insertion_sort function signature
1 parent d81f4d0 commit bf627dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sorts/binary_insertion_sort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __lt__(self, other: object, /) -> bool: ...
2020
T = TypeVar("T", bound=Comparable)
2121

2222

23-
def binary_insertion_sort(collection: list[T]) -> list[T]:
23+
def binary_insertion_sort[T: Comparable](collection: list[T]) -> list[T]:
2424
"""
2525
Sorts a list using the binary insertion sort algorithm.
2626

0 commit comments

Comments
 (0)