diff --git a/sorts/merge_sort.py b/sorts/merge_sort.py index 11c202788035..10db332fa099 100644 --- a/sorts/merge_sort.py +++ b/sorts/merge_sort.py @@ -10,7 +10,7 @@ """ -def merge_sort(collection: list) -> list: +def merge_sort(collection: list[int]) -> list[int]: """ Sorts a list using the merge sort algorithm. @@ -29,7 +29,7 @@ def merge_sort(collection: list) -> list: [-45, -5, -2] """ - def merge(left: list, right: list) -> list: + def merge(left: list[int], right: list[int]) -> list[int]: """ Merge two sorted lists into a single sorted list.