From 5dc36e6a8748c258ec78666a49c84fa65305e409 Mon Sep 17 00:00:00 2001 From: Jeremy Tan Date: Wed, 4 Oct 2023 10:54:15 +0900 Subject: [PATCH] Add typing --- sorts/shell_sort.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sorts/shell_sort.py b/sorts/shell_sort.py index 10ae9ba407ec..b65609c974b7 100644 --- a/sorts/shell_sort.py +++ b/sorts/shell_sort.py @@ -3,7 +3,7 @@ """ -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