Skip to content

feat: added unified tree traversal to compute preorder, inorder, and postorder in one pass #16096

feat: added unified tree traversal to compute preorder, inorder, and postorder in one pass

feat: added unified tree traversal to compute preorder, inorder, and postorder in one pass #16096

Triggered via pull request October 26, 2025 12:21
Status Failure
Total duration 15s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (UP006): data_structures/binary_tree/all_traversals_one_pass.py#L32
data_structures/binary_tree/all_traversals_one_pass.py:32:62: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/binary_tree/all_traversals_one_pass.py#L32
data_structures/binary_tree/all_traversals_one_pass.py:32:51: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/binary_tree/all_traversals_one_pass.py#L32
data_structures/binary_tree/all_traversals_one_pass.py:32:45: UP006 Use `tuple` instead of `Tuple` for type annotation
Ruff (UP045): data_structures/binary_tree/all_traversals_one_pass.py#L32
data_structures/binary_tree/all_traversals_one_pass.py:32:26: UP045 Use `X | None` for type annotations
Ruff (UP045): data_structures/binary_tree/all_traversals_one_pass.py#L29
data_structures/binary_tree/all_traversals_one_pass.py:29:21: UP045 Use `X | None` for type annotations
Ruff (UP045): data_structures/binary_tree/all_traversals_one_pass.py#L28
data_structures/binary_tree/all_traversals_one_pass.py:28:20: UP045 Use `X | None` for type annotations
Ruff (W293): data_structures/binary_tree/all_traversals_one_pass.py#L22
data_structures/binary_tree/all_traversals_one_pass.py:22:1: W293 Blank line contains whitespace
Ruff (I001): data_structures/binary_tree/all_traversals_one_pass.py#L8
data_structures/binary_tree/all_traversals_one_pass.py:8:1: I001 Import block is un-sorted or un-formatted
Ruff (UP035): data_structures/binary_tree/all_traversals_one_pass.py#L8
data_structures/binary_tree/all_traversals_one_pass.py:8:1: UP035 `typing.Tuple` is deprecated, use `tuple` instead
Ruff (UP035): data_structures/binary_tree/all_traversals_one_pass.py#L8
data_structures/binary_tree/all_traversals_one_pass.py:8:1: UP035 `typing.List` is deprecated, use `list` instead