diff --git a/sorts/insertion_sort.py b/sorts/insertion_sort.py index ae5edca3f60f..9ff68e20400b 100644 --- a/sorts/insertion_sort.py +++ b/sorts/insertion_sort.py @@ -14,16 +14,13 @@ """ from collections.abc import MutableSequence -from typing import Any, Protocol, TypeVar +from typing import Any, Protocol class Comparable(Protocol): def __lt__(self, other: Any, /) -> bool: ... -T = TypeVar("T", bound=Comparable) - - def insertion_sort[T: Comparable](collection: MutableSequence[T]) -> MutableSequence[T]: """A pure Python implementation of the insertion sort algorithm