diff --git a/sorts/pancake_sort.py b/sorts/pancake_sort.py index 50eb8cc783f3..ddad6daf6704 100644 --- a/sorts/pancake_sort.py +++ b/sorts/pancake_sort.py @@ -21,16 +21,13 @@ """ from collections.abc import Sequence -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 pancake_sort[T: Comparable](arr: Sequence[T]) -> list[T]: """Sort Array with Pancake Sort.