-
-
Notifications
You must be signed in to change notification settings - Fork 46.5k
New issue
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
Increase code coverage for dijkstra algorithm #10695
Increase code coverage for dijkstra algorithm #10695
Conversation
Refactor to pass mypy
In the commit message above, what does the second checked bullet say? |
Thank you @cclauss for the feedback. Are you referring to the PR comment? I may have misinterpreted. I made changes to some variable names for readability. I have removed the tick. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please open a new pull request and copy in ONLY the doctests from this pull request. Once that new pull request is merged, we can come back to the code changes in this pull request.
Hi @cclauss I have removed code changes in this PR so that only doctests remain with exception for a bug fix in the min_heapify method. Considering method doc strings are used for the doctests, I have also moved method description comments into these. |
Hi @cclauss is there any possibility of this PR being merged soon as I would prefer it to be so before continuing with code changes in a new PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make PriorityQueue
a https://docs.python.org/3/library/dataclasses.html
* Increase code coverage for dijkstra algorithm * Add missing code coverage Refactor to pass mypy * Fix missing code coverage * Remove code changes, keep doctest * Remove ALL of the code changes * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update dijkstra_algorithm.py --------- Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Describe your change:
Ref #9943
Add doctests to
dijkstra_algorithm.py
to improve code coverageBug fixed where required to execute and pass doctests
Moved method declaration comments to doc strings for methods doc strings are added to for the doctests
Checklist: