Skip to content

Commit e418349

Browse files
committed
refactor(data_structures): remove redundant TypeVar from segment tree and skip list
1 parent 215c1f0 commit e418349

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

‎data_structures/binary_tree/non_recursive_segment_tree.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@
3939
from __future__ import annotations
4040

4141
from collections.abc import Callable
42-
from typing import TypeVar, cast
43-
44-
T = TypeVar("T")
42+
from typing import cast
4543

4644

4745
class SegmentTree[T]:

‎data_structures/linked_list/skip_list.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77

88
from itertools import pairwise
99
from random import random
10-
from typing import TypeVar
11-
12-
KT = TypeVar("KT")
13-
VT = TypeVar("VT")
1410

1511

1612
class Node[KT, VT]:

0 commit comments

Comments
 (0)