Skip to content

Commit 3985535

Browse files
committed
feat: update
1 parent ca71208 commit 3985535

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

leetcode_py/data_structures/list_node.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# from typing import Generic, TypeVar
1+
from typing import Generic, TypeVar
22

3-
# # TODO: Remove TypeVar when minimum Python version is 3.12+ (use class ListNode[T]: syntax)
4-
# T = TypeVar("T")
3+
# TODO: Remove TypeVar when minimum Python version is 3.12+ (use class ListNode[T]: syntax)
4+
T = TypeVar("T")
55

66

7-
class ListNode[T]:
7+
class ListNode(Generic[T]):
88
def __init__(self, val: T, next: "ListNode[T] | None" = None):
99
self.val = val
1010
self.next = next

0 commit comments

Comments
 (0)