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 c161fee commit 0c718d0Copy full SHA for 0c718d0
data_structures/binary_tree/red_black_tree.py
@@ -651,7 +651,8 @@ def postorder_traverse(self) -> Iterator[int | None]:
651
652
def __repr__(self) -> str:
653
"""Return a string representation of the tree."""
654
- from pprint import pformat
+ from pprint import pformat
655
+
656
if self.left is None and self.right is None:
657
return f"'{self.label} {(self.color and 'red') or 'blk'}'"
658
return pformat(
0 commit comments