We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c499c1 commit fbd60e6Copy full SHA for fbd60e6
data_structures/binary_tree/binary_search_tree.py
@@ -93,6 +93,7 @@
93
94
from collections.abc import Iterable, Iterator
95
from dataclasses import dataclass
96
+from pprint import pformat
97
from typing import Any, Self
98
99
@@ -115,7 +116,7 @@ def __iter__(self) -> Iterator[int]:
115
116
yield from self.right or []
117
118
def __repr__(self) -> str:
- from pprint import pformat
119
+
120
121
if self.left is None and self.right is None:
122
return str(self.value)
0 commit comments