Skip to content

Commit 8e11c30

Browse files
committed
Last Sync: 2025-07-04 22:41 (Mobile)
1 parent aeac475 commit 8e11c30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data_structures/binary_tree/binary_search_tree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,11 @@
9191

9292
from __future__ import annotations
9393

94-
9594
from collections.abc import Iterable, Iterator
9695
from dataclasses import dataclass
97-
from pprint import pformat
9896
from typing import Any, Self
9997

98+
10099
@dataclass
101100
class Node:
102101
value: int
@@ -116,6 +115,7 @@ def __iter__(self) -> Iterator[int]:
116115
yield from self.right or []
117116

118117
def __repr__(self) -> str:
118+
from pprint import pformat
119119

120120
if self.left is None and self.right is None:
121121
return str(self.value)

0 commit comments

Comments
 (0)