Skip to content

Commit 93dfc0e

Browse files
committed
refactor(caching): remove redundant TypeVar definitions
1 parent 215c1f0 commit 93dfc0e

3 files changed

Lines changed: 0 additions & 11 deletions

File tree

‎other/least_recently_used.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
import sys
44
from collections import deque
5-
from typing import TypeVar
6-
7-
T = TypeVar("T")
85

96

107
class LRUCache[T]:

‎other/lfu_cache.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
from __future__ import annotations
22

33
from collections.abc import Callable
4-
from typing import TypeVar
5-
6-
T = TypeVar("T")
7-
U = TypeVar("U")
84

95

106
class DoubleLinkedListNode[T, U]:

‎other/lru_cache.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
from __future__ import annotations
22

33
from collections.abc import Callable
4-
from typing import TypeVar
5-
6-
T = TypeVar("T")
7-
U = TypeVar("U")
84

95

106
class DoubleLinkedListNode[T, U]:

0 commit comments

Comments
 (0)