Closed
Description
The prepare()
method of graphlib.TopologicalSorter
class raises a CycleError
if any cycles are detected in the graph.
Lines 104 to 106 in e2c4038
The docstring for CycleError
promises the cycle (list of nodes) to be accessible in the Exception's args attribute.
The detected cycle can be accessed via the second
element in the args attribute of the exception instance
The f-string for the first argument to the CycleError is therefore redundant and may cause confusion.