Skip to content

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

Add topological sort using DFS and Kahn's algorithm

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

Triggered via pull request January 8, 2026 12:32
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/sort/topological_sort.py#L54
data_structures/sort/topological_sort.py:54:17: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L54
data_structures/sort/topological_sort.py:54:12: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L44
data_structures/sort/topological_sort.py:44:68: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L44
data_structures/sort/topological_sort.py:44:53: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L44
data_structures/sort/topological_sort.py:44:48: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L20
data_structures/sort/topological_sort.py:20:13: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L19
data_structures/sort/topological_sort.py:19:14: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L18
data_structures/sort/topological_sort.py:18:17: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): data_structures/sort/topological_sort.py#L18
data_structures/sort/topological_sort.py:18:12: 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