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]: