mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 20:54:32 +08:00
Create stubs for toposort (#6048)
This commit is contained in:
1 parent
afad78343a
commit
7ed8da4415
3 files changed
+12
No files matched your search
@@ -0,0 +1 @@
|
||||
version = "1.6"
|
||||
@@ -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]: ...
|
||||
Reference in new issue
Block a user