We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 678dedb commit 0784de7Copy full SHA for 0784de7
sorts/merge_sort.py
@@ -10,7 +10,7 @@
10
"""
11
12
13
-def merge_sort(collection: list) -> list:
+def merge_sort(collection: list[int]) -> list[int]:
14
15
Sorts a list using the merge sort algorithm.
16
@@ -29,7 +29,7 @@ def merge_sort(collection: list) -> list:
29
[-45, -5, -2]
30
31
32
- def merge(left: list, right: list) -> list:
+ def merge(left: list[int], right: list[int]) -> list[int]:
33
34
Merge two sorted lists into a single sorted list.
35
0 commit comments