From 071343d75caea9dd5950ffdca6aaff0616d6452a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0lker=20O=C4=9Fulcan=20Say=C4=B1n?= <47698920+iosayin@users.noreply.github.com> Date: Mon, 5 Oct 2026 18:04:37 +0300 Subject: [PATCH] refactor(sorts): remove redundant TypeVar in binary_insertion_sort --- sorts/binary_insertion_sort.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sorts/binary_insertion_sort.py b/sorts/binary_insertion_sort.py index f974a97f316e..16de1e81552d 100644 --- a/sorts/binary_insertion_sort.py +++ b/sorts/binary_insertion_sort.py @@ -10,16 +10,13 @@ python binary_insertion_sort.py """ -from typing import Protocol, TypeVar +from typing import Protocol class Comparable(Protocol): def __lt__(self, other: object, /) -> bool: ... -T = TypeVar("T", bound=Comparable) - - def binary_insertion_sort[T: Comparable](collection: list[T]) -> list[T]: """ Sorts a list using the binary insertion sort algorithm.