MCPcopy Index your code
hub / github.com/python/cpython / _roots

Function _roots

Lib/asyncio/tools.py:100–102  ·  view source on GitHub ↗
(id2label, children)

Source from the content-addressed store, hash-verified

98
99
100def _roots(id2label, children):
101 all_children = {c for kids in children.values() for c in kids}
102 return [n for n in id2label if n not in all_children]
103
104# ─── detect cycles in the task-to-task graph ───────────────────────
105def _task_graph(awaits):

Callers 1

build_async_treeFunction · 0.85

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…