Skip to content

Commit 792887f

Browse files
authored
Apply suggestion from @cclauss
1 parent 534eb84 commit 792887f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎sorts/recursive_quick_sort.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
from typing import Any, Protocol, TypeVar
1+
from typing import Any, Protocol
22

33

44
class Comparable(Protocol):
55
def __lt__(self, other: Any, /) -> bool: ...
66

77

8-
T = TypeVar("T", bound=Comparable)
9-
10-
118
def quick_sort[T: Comparable](data: list[T]) -> list[T]:
129
"""
1310
>>> for data in ([2, 1, 0], [2.2, 1.1, 0], "quick_sort"):

0 commit comments

Comments
 (0)