Skip to content

Commit e7f3e0a

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

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

data_structures/binary_tree/red_black_tree.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from collections.abc import Iterator
44
from pprint import pformat
55

6+
67
class RedBlackTree:
78
"""
89
A Red-Black tree, which is a self-balancing BST (binary search
@@ -839,12 +840,13 @@ def main() -> None:
839840
>>> pytests()
840841
"""
841842
import doctest
843+
842844
failures, _ = doctest.testmod()
843845
if failures == 0:
844846
print("All doctests passed!")
845847
else:
846848
print(f"{failures} doctests failed!")
847-
849+
848850
print_results("Rotating right and left", test_rotations())
849851
print_results("Inserting", test_insert())
850852
print_results("Searching", test_insert_and_search())
@@ -859,4 +861,4 @@ def main() -> None:
859861

860862

861863
if __name__ == "__main__":
862-
main()
864+
main()

0 commit comments

Comments
 (0)