Add typing (#9654)

Co-authored-by: Jeremy Tan <jeremytan@stripe.com>
This commit is contained in:
Tan Kai Qun, Jeremy 2023-10-04 11:07:25 +09:00 committed by GitHub
parent a7133eca13
commit 8c23cc5117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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