There was an error while loading. Please reload this page.
1 parent 17de1e4 commit 3887a1bCopy full SHA for 3887a1b
1 file changed
sorts/circle_sort.py
@@ -9,16 +9,13 @@
9
"""
10
11
from collections.abc import MutableSequence
12
-from typing import Any, Protocol, TypeVar
+from typing import Any, Protocol
13
14
15
class Comparable(Protocol):
16
def __lt__(self, other: Any, /) -> bool: ...
17
18
19
-T = TypeVar("T", bound=Comparable)
20
-
21
22
def circle_sort[T: Comparable](
23
collection: MutableSequence[T],
24
) -> MutableSequence[T]:
0 commit comments