Skip to content

Commit e3996bb

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

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎sorts/odd_even_sort.py‎

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

10+
1011
class Comparable(Protocol):
11-
def __lt__(self, other:Any, /)->bool: ...
12+
def __lt__(self, other: Any, /) -> bool: ...
13+
1214

1315
T = TypeVar("T", bound="Comparable")
1416

15-
def odd_even_sort[T:Comparable](collection: MutableSequence[T]) -> MutableSequence[T]:
17+
18+
def odd_even_sort[T: Comparable](collection: MutableSequence[T]) -> MutableSequence[T]:
1619
"""
1720
Sort input with odd even sort.
1821

0 commit comments

Comments
 (0)