We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The prepare() method of graphlib.TopologicalSorter class raises a CycleError if any cycles are detected in the graph.
prepare()
graphlib.TopologicalSorter
CycleError
cpython/Lib/graphlib.py
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.
The text was updated successfully, but these errors were encountered:
gh-115238: Remove a redundant f-string in graphlib (#115239)
917283a
No branches or pull requests
The
prepare()
method ofgraphlib.TopologicalSorter
class raises aCycleError
if any cycles are detected in the graph.cpython/Lib/graphlib.py
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 f-string for the first argument to the CycleError is therefore redundant and may cause confusion.
Linked PRs
The text was updated successfully, but these errors were encountered: