Skip to content

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

Add topological sort using DFS and Kahn's algorithm

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

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

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (UP006): data_structures/sort/topological_sort.py#L52
data_structures/sort/topological_sort.py:52:54: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L52
data_structures/sort/topological_sort.py:52:49: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L31
data_structures/sort/topological_sort.py:31:13: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L26
data_structures/sort/topological_sort.py:26:17: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L26
data_structures/sort/topological_sort.py:26:12: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L16
data_structures/sort/topological_sort.py:16:68: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L16
data_structures/sort/topological_sort.py:16:53: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L16
data_structures/sort/topological_sort.py:16:48: UP006 Use `list` instead of `List` for type annotation
Ruff (UP035): data_structures/sort/topological_sort.py#L13
data_structures/sort/topological_sort.py:13:1: UP035 `typing.List` is deprecated, use `list` instead
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`.