diff options
author | Olly Cope <olly@ollycope.com> | 2021-05-16 17:35:21 +0000 |
---|---|---|
committer | Olly Cope <olly@ollycope.com> | 2021-05-16 17:35:21 +0000 |
commit | 9a6b35dbd9a552e490d30cacfcf026a0b9fee7af (patch) | |
tree | e0888dbfa3cccb760ba9224364da8848e69c5453 /yoyo | |
parent | a98b6fbeb2dcf70cd8bb2c8d2487a03e70db1129 (diff) | |
download | yoyo-9a6b35dbd9a552e490d30cacfcf026a0b9fee7af.tar.gz |
topological sort: stricter typehints
Diffstat (limited to 'yoyo')
-rw-r--r-- | yoyo/topologicalsort.py | 1 |
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") |