massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / toposort / toposort.pyi
1 from typing import Any, Iterator, TypeVar
2
3 _T = TypeVar("_T")
4
5 class CircularDependencyError(ValueError):
6     data: dict[Any, set[Any]]
7     def __init__(self, data: dict[Any, set[Any]]) -> None: ...
8
9 def toposort(data: dict[_T, set[_T]]) -> Iterator[set[_T]]: ...
10 def toposort_flatten(data: dict[_T, set[_T]], sort: bool = ...) -> list[_T]: ...