From: Nikola Savic <76233425+nikolasavic3@users.noreply.github.com> Date: Sun, 9 Feb 2025 15:22:57 +0000 (+0100) Subject: gh-129892: Doc: Remove unnecessary role directive in graphlib.py (#129896) X-Git-Tag: v3.14.0a5~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c53730171f18b90202aa0918b3c05412222bb1ec;p=thirdparty%2FPython%2Fcpython.git gh-129892: Doc: Remove unnecessary role directive in graphlib.py (#129896) Change `:exec:ValueError` to `ValueError` in `TopologicalSorter.done()` docstring --- diff --git a/Lib/graphlib.py b/Lib/graphlib.py index 1438a5fc54b9..82f33fb5cf31 100644 --- a/Lib/graphlib.py +++ b/Lib/graphlib.py @@ -154,7 +154,7 @@ class TopologicalSorter: This method unblocks any successor of each node in *nodes* for being returned in the future by a call to "get_ready". - Raises :exec:`ValueError` if any node in *nodes* has already been marked as + Raises ValueError if any node in *nodes* has already been marked as processed by a previous call to this method, if a node was not added to the graph by using "add" or if called without calling "prepare" previously or if node has not yet been returned by "get_ready".