Skip to content

Add topological sort using DFS and Kahn's algorithm #16781

Add topological sort using DFS and Kahn's algorithm

Add topological sort using DFS and Kahn's algorithm #16781

Triggered via pull request January 8, 2026 12:04
Status Failure
Total duration 11s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
ruff
Process completed with exit code 1.
Ruff (UP006): data_structures/sort/topological_sort.py#L48
data_structures/sort/topological_sort.py:48:69: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L48
data_structures/sort/topological_sort.py:48:54: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L48
data_structures/sort/topological_sort.py:48:49: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L13
data_structures/sort/topological_sort.py:13:68: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L13
data_structures/sort/topological_sort.py:13:53: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L13
data_structures/sort/topological_sort.py:13:48: UP006 Use `list` instead of `List` for type annotation
Ruff (UP035): data_structures/sort/topological_sort.py#L10
data_structures/sort/topological_sort.py:10:1: UP035 `typing.List` is deprecated, use `list` instead
Ruff (I001): data_structures/sort/topological_sort.py#L9
data_structures/sort/topological_sort.py:9:1: I001 Import block is un-sorted or un-formatted
Ruff (INP001): data_structures/sort/topological_sort.py#L1
data_structures/sort/topological_sort.py:1:1: INP001 File `data_structures/sort/topological_sort.py` is part of an implicit namespace package. Add an `__init__.py`.