Skip to content

Commit 5d21113

Browse files
Merge branch 'odd-even-sort-comparable' of https://github.com/aayushgupta7725/Python into odd-even-sort-comparable
2 parents 961cd45 + d47dab1 commit 5d21113

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎sorts/odd_even_sort.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
class Comparable(Protocol):
1212
def __gt__(self, other: Any, /) -> bool: ...
1313

14+
1415
def odd_even_sort[T: Comparable](collection: MutableSequence[T]) -> MutableSequence[T]:
1516
"""
1617
Sort input with odd even sort.

0 commit comments

Comments
 (0)