From 93dfc0e3973bcaeb0e093a9c182c416283bf6d22 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: Tue, 6 Oct 2026 21:22:33 +0300 Subject: [PATCH] refactor(caching): remove redundant TypeVar definitions --- other/least_recently_used.py | 3 --- other/lfu_cache.py | 4 ---- other/lru_cache.py | 4 ---- 3 files changed, 11 deletions(-) diff --git a/other/least_recently_used.py b/other/least_recently_used.py index d96960868488..972b9427b841 100644 --- a/other/least_recently_used.py +++ b/other/least_recently_used.py @@ -2,9 +2,6 @@ import sys from collections import deque -from typing import TypeVar - -T = TypeVar("T") class LRUCache[T]: diff --git a/other/lfu_cache.py b/other/lfu_cache.py index 3ba5632652d2..4b1303f34c43 100644 --- a/other/lfu_cache.py +++ b/other/lfu_cache.py @@ -1,10 +1,6 @@ from __future__ import annotations from collections.abc import Callable -from typing import TypeVar - -T = TypeVar("T") -U = TypeVar("U") class DoubleLinkedListNode[T, U]: diff --git a/other/lru_cache.py b/other/lru_cache.py index f2c3a0fa1b52..994a2a22cb9c 100644 --- a/other/lru_cache.py +++ b/other/lru_cache.py @@ -1,10 +1,6 @@ from __future__ import annotations from collections.abc import Callable -from typing import TypeVar - -T = TypeVar("T") -U = TypeVar("U") class DoubleLinkedListNode[T, U]: