Add typing (#9652)

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

View File

@ -3,7 +3,7 @@ https://en.wikipedia.org/wiki/Shellsort#Pseudocode
"""
def shell_sort(collection):
def shell_sort(collection: list[int]) -> list[int]:
"""Pure implementation of shell sort algorithm in Python
:param collection: Some mutable ordered collection with heterogeneous
comparable items inside