Create stubs for toposort (#6048)

This commit is contained in:
Akuli
2021-09-20 00:04:23 +03:00
committed by GitHub
parent afad78343a
commit 7ed8da4415
3 changed files with 12 additions and 0 deletions

View File

@@ -60,6 +60,7 @@
"stubs/simplejson",
"stubs/slumber",
"stubs/stripe",
"stubs/toposort",
"stubs/ttkthemes",
"stubs/vobject",
"stubs/waitress",

View File

@@ -0,0 +1 @@
version = "1.6"

View File

@@ -0,0 +1,10 @@
from typing import Any, Iterator, TypeVar
_T = TypeVar("_T")
class CircularDependencyError(ValueError):
data: dict[Any, set[Any]]
def __init__(self, data: dict[Any, set[Any]]) -> None: ...
def toposort(data: dict[_T, set[_T]]) -> Iterator[set[_T]]: ...
def toposort_flatten(data: dict[_T, set[_T]], sort: bool = ...) -> list[_T]: ...