Skip to content

Commit 02285d6

Browse files
authored
Add type parameter to strand_sort function
1 parent 88de55c commit 02285d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sorts/strand_sort.py‎

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

1313

14-
def strand_sort(
14+
def strand_sort[T](
1515
arr: list[T], reverse: bool = False, solution: list[T] | None = None
1616
) -> list[T]:
1717
"""

0 commit comments

Comments
 (0)