Skip to content

Commit 28f1e68

Browse files
Add typing (TheAlgorithms#9651)
Co-authored-by: Jeremy Tan <[email protected]>
1 parent 1243138 commit 28f1e68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: sorts/stooge_sort.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
def stooge_sort(arr):
1+
def stooge_sort(arr: list[int]) -> list[int]:
22
"""
33
Examples:
44
>>> stooge_sort([18.1, 0, -7.1, -1, 2, 2])
@@ -11,7 +11,7 @@ def stooge_sort(arr):
1111
return arr
1212

1313

14-
def stooge(arr, i, h):
14+
def stooge(arr: list[int], i: int, h: int) -> None:
1515
if i >= h:
1616
return
1717

0 commit comments

Comments
 (0)