Skip to content

Commit abe244c

Browse files
authored
[doc] Fix typo in the graphlib docs (GH-22661)
Automerge-Triggered-By: @pablogsal
1 parent 8adf8d1 commit abe244c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Lib/graphlib.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def __init__(self, node):
2222

2323

2424
class CycleError(ValueError):
25-
"""Subclass of ValueError raised by TopologicalSorterif cycles exist in the graph
25+
"""Subclass of ValueError raised by TopologicalSorter.prepare if cycles
26+
exist in the working graph.
2627
2728
If multiple cycles exist, only one undefined choice among them will be reported
2829
and included in the exception. The detected cycle can be accessed via the second
@@ -129,7 +130,7 @@ def get_ready(self):
129130
return result
130131

131132
def is_active(self):
132-
"""Return True if more progress can be made and ``False`` otherwise.
133+
"""Return ``True`` if more progress can be made and ``False`` otherwise.
133134
134135
Progress can be made if cycles do not block the resolution and either there
135136
are still nodes ready that haven't yet been returned by "get_ready" or the
@@ -149,7 +150,7 @@ def done(self, *nodes):
149150
"""Marks a set of nodes returned by "get_ready" as processed.
150151
151152
This method unblocks any successor of each node in *nodes* for being returned
152-
in the future by a a call to "get_ready"
153+
in the future by a call to "get_ready".
153154
154155
Raises :exec:`ValueError` if any node in *nodes* has already been marked as
155156
processed by a previous call to this method, if a node was not added to the

0 commit comments

Comments
 (0)