Skip to content

Commit fbd60e6

Browse files
authored
Update binary_search_tree.py
1 parent 6c499c1 commit fbd60e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

data_structures/binary_tree/binary_search_tree.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393

9494
from collections.abc import Iterable, Iterator
9595
from dataclasses import dataclass
96+
from pprint import pformat
9697
from typing import Any, Self
9798

9899

@@ -115,7 +116,7 @@ def __iter__(self) -> Iterator[int]:
115116
yield from self.right or []
116117

117118
def __repr__(self) -> str:
118-
from pprint import pformat
119+
119120

120121
if self.left is None and self.right is None:
121122
return str(self.value)

0 commit comments

Comments
 (0)