Skip to content

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

Add topological sort using DFS and Kahn's algorithm

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

Triggered via pull request January 8, 2026 12:21
Status Failure
Total duration 11s
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: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
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`.