Skip to content

networkx: complete the astar and generic modules in shortest_paths #14550

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

Merged
merged 1 commit into from
Aug 11, 2025

Conversation

hamdanal
Copy link
Contributor

@hamdanal hamdanal commented Aug 9, 2025

The function shortest_path in the generic module falls under #14462 but was already made non-dispatchable in order to use overloads. I added the missing dispatchable keywords so that the function passes stubtest. I think this is better than allow-listing it. I used the same model for shortest_path_length as these two functions are tightly coupled.

Copy link
Contributor

github-actions bot commented Aug 9, 2025

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit d876dba into python:main Aug 11, 2025
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants