summaryrefslogtreecommitdiff
path: root/yoyo
diff options
context:
space:
mode:
authorOlly Cope <olly@ollycope.com>2021-05-16 17:35:21 +0000
committerOlly Cope <olly@ollycope.com>2021-05-16 17:35:21 +0000
commit9a6b35dbd9a552e490d30cacfcf026a0b9fee7af (patch)
treee0888dbfa3cccb760ba9224364da8848e69c5453 /yoyo
parenta98b6fbeb2dcf70cd8bb2c8d2487a03e70db1129 (diff)
downloadyoyo-9a6b35dbd9a552e490d30cacfcf026a0b9fee7af.tar.gz
topological sort: stricter typehints
Diffstat (limited to 'yoyo')
-rw-r--r--yoyo/topologicalsort.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yoyo/topologicalsort.py b/yoyo/topologicalsort.py
index f74944b..4cd1550 100644
--- a/yoyo/topologicalsort.py
+++ b/yoyo/topologicalsort.py
@@ -74,3 +74,4 @@ def raise_cycle_error(ordering, pqueue, blocked_on):
f"Dependency graph loop detected among {unresolved!r}",
list(sorted(unresolved, key=ordering.get)),
)
+ raise AssertionError("raise_cycle_error called but no unresovled nodes exist")