diff --git a/sorts/pancake_sort.py b/sorts/pancake_sort.py index e5d600738435..80cb23418c47 100644 --- a/sorts/pancake_sort.py +++ b/sorts/pancake_sort.py @@ -9,7 +9,7 @@ """ -def pancake_sort(arr): +def pancake_sort[T: (int, float)](arr: list[T]) -> list[T]: """Sort Array with Pancake Sort. :param arr: Collection containing comparable items :return: Collection ordered in ascending order of items