Skip to content

Commit

Permalink
added type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Sufi-to committed Jan 7, 2025
1 parent 83a143d commit ae629ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solutions/bubble_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""


def bubble_sort(arr):
def bubble_sort(arr: list[float | int]) -> None:
"""
Sorts a list of elements in ascending order using the bubble sort algorithm.
Expand Down

0 comments on commit ae629ca

Please sign in to comment.