Skip to content

Commit 1e94188

Browse files
authored
Apply batched suggestions from code review
Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 65d7ba5 commit 1e94188

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎sorts/reversort.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@
1717
python reversort.py
1818
"""
1919

20-
from typing import Any, Protocol, TypeVar
20+
from typing import Any, Protocol
2121

2222

2323
class Comparable(Protocol):
2424
def __lt__(self, other: Any, /) -> bool: ...
2525

2626

27-
T = TypeVar("T", bound=Comparable)
28-
29-
3027
def reversort[T: Comparable](collection: list[T]) -> list[T]:
3128
"""
3229
Sort a list using the Reversort algorithm.

0 commit comments

Comments
 (0)