Skip to content

Commit 65c2d50

Browse files
committed
[mypy] Add/fix type annotations for radix_sort(TheAlgorithms#4085)
1 parent 8cfd825 commit 65c2d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: sorts/radix_sort.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def radix_sort(list_of_ints: List[int]) -> List[int]:
3030
max_digit = max(list_of_ints)
3131
while placement <= max_digit:
3232
# declare and initialize empty buckets
33-
buckets = [list() for _ in range(RADIX)]
33+
buckets: List[list] = [list() for _ in range(RADIX)]
3434
# split list_of_ints between the buckets
3535
for i in list_of_ints:
3636
tmp = int((i / placement) % RADIX)

0 commit comments

Comments
 (0)