Skip to content

Commit d47dab1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c0575fe commit d47dab1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎sorts/odd_even_sort.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
from collections.abc import MutableSequence
88
from typing import Any, Protocol
99

10+
1011
class Comparable(Protocol):
1112
def __gt__(self, other: Any, /) -> bool: ...
1213

14+
1315
def odd_even_sort[T: Comparable](collection: MutableSequence[T]) -> MutableSequence[T]:
1416
"""
1517
Sort input with odd even sort.

0 commit comments

Comments
 (0)