massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / toposort / toposort.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/toposort/toposort.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/toposort/toposort.pyi
new file mode 100644 (file)
index 0000000..9410d82
--- /dev/null
@@ -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]: ...