Skip to content

Commit 0c718d0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c161fee commit 0c718d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

data_structures/binary_tree/red_black_tree.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,8 @@ def postorder_traverse(self) -> Iterator[int | None]:
651651

652652
def __repr__(self) -> str:
653653
"""Return a string representation of the tree."""
654-
from pprint import pformat
654+
from pprint import pformat
655+
655656
if self.left is None and self.right is None:
656657
return f"'{self.label} {(self.color and 'red') or 'blk'}'"
657658
return pformat(

0 commit comments

Comments
 (0)