Skip to content

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
@hamdanal hamdanal deleted the networkx-shortest_paths branch August 11, 2025 16:25
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