Add typing (#9654)

Co-authored-by: Jeremy Tan <jeremytan@stripe.com>
This commit is contained in:
Tan Kai Qun, Jeremy
2023-10-03 22:07:25 -04:00
committed by GitHub
co-authored by Jeremy Tan
parent a7133eca13
commit 8c23cc5117
+1 -1
View File
@@ -11,7 +11,7 @@ python selection_sort.py
"""
def selection_sort(collection):
def selection_sort(collection: list[int]) -> list[int]:
"""Pure implementation of the selection sort algorithm in Python
:param collection: some mutable ordered collection with heterogeneous
comparable items inside