diff --git a/sorts/bogo_sort.py b/sorts/bogo_sort.py index 16eed3bc3c1f..1bbb232cf3d6 100644 --- a/sorts/bogo_sort.py +++ b/sorts/bogo_sort.py @@ -43,7 +43,7 @@ def bogo_sort[T: Comparable](collection: list[T]) -> list[T]: TypeError: '<' not supported between instances of 'str' and 'int' """ - def is_sorted[T: Comparable](collection: list[T]) -> bool: + def is_sorted(collection: list[T]) -> bool: for i in range(len(collection) - 1): if collection[i + 1] < collection[i]: return False