Skip to content

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

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 #16097

Triggered via pull request October 26, 2025 12:22
Status Failure
Total duration 17s
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#L33
data_structures/binary_tree/all_traversals_one_pass.py:33:73: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/binary_tree/all_traversals_one_pass.py#L33
data_structures/binary_tree/all_traversals_one_pass.py:33:62: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/binary_tree/all_traversals_one_pass.py#L33
data_structures/binary_tree/all_traversals_one_pass.py:33:51: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/binary_tree/all_traversals_one_pass.py#L33
data_structures/binary_tree/all_traversals_one_pass.py:33:45: UP006 Use `tuple` instead of `Tuple` for type annotation
Ruff (UP045): data_structures/binary_tree/all_traversals_one_pass.py#L33
data_structures/binary_tree/all_traversals_one_pass.py:33:26: UP045 Use `X | None` for type annotations
Ruff (UP045): data_structures/binary_tree/all_traversals_one_pass.py#L30
data_structures/binary_tree/all_traversals_one_pass.py:30:21: 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:20: UP045 Use `X | None` for type annotations
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