From aa3131b44d3079c7d267d0eddff2622da164f461 Mon Sep 17 00:00:00 2001 From: karrad1201 Date: Wed, 4 Feb 2026 22:15:15 +0500 Subject: [PATCH] Add type annotations to circle_sort --- sorts/circle_sort.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sorts/circle_sort.py b/sorts/circle_sort.py index 271fa1e8d58a..981ea2b83179 100644 --- a/sorts/circle_sort.py +++ b/sorts/circle_sort.py @@ -9,7 +9,7 @@ """ -def circle_sort(collection: list) -> list: +def circle_sort(collection: list[int]) -> list[int]: """A pure Python implementation of circle sort algorithm :param collection: a mutable collection of comparable items in any order @@ -30,7 +30,7 @@ def circle_sort(collection: list) -> list: if len(collection) < 2: return collection - def circle_sort_util(collection: list, low: int, high: int) -> bool: + def circle_sort_util(collection: list[int], low: int, high: int) -> bool: """ >>> arr = [5,4,3,2,1] >>> circle_sort_util(lst, 0, 2)