Skip to content

Commit e0ea213

Browse files
committed
fix: remove unused TypeVar from insertion_sort
1 parent 215c1f0 commit e0ea213

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎sorts/insertion_sort.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@
1414
"""
1515

1616
from collections.abc import MutableSequence
17-
from typing import Any, Protocol, TypeVar
17+
from typing import Any, Protocol
1818

1919

2020
class Comparable(Protocol):
2121
def __lt__(self, other: Any, /) -> bool: ...
2222

2323

24-
T = TypeVar("T", bound=Comparable)
25-
26-
2724
def insertion_sort[T: Comparable](collection: MutableSequence[T]) -> MutableSequence[T]:
2825
"""A pure Python implementation of the insertion sort algorithm
2926

0 commit comments

Comments
 (0)