Skip to content

Commit fbbf974

Browse files
Update bogo_sort.py
1 parent 6ec3f59 commit fbbf974

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sorts/bogo_sort.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import random
1717

1818

19-
def bogo_sort(collection: list[int]) -> list[int]:
19+
def bogo_sort(collection: list) -> list:
2020
"""Pure implementation of the bogosort algorithm in Python
2121
:param collection: some mutable ordered collection with heterogeneous
2222
comparable items inside
@@ -30,7 +30,7 @@ def bogo_sort(collection: list[int]) -> list[int]:
3030
[-45, -5, -2]
3131
"""
3232

33-
def is_sorted(collection: list[int]) -> bool:
33+
def is_sorted(collection: list) -> bool:
3434
for i in range(len(collection) - 1):
3535
if collection[i] > collection[i + 1]:
3636
return False

0 commit comments

Comments
 (0)