Skip to content

networkx: Most nodelist params are collections #13945

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

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented May 5, 2025

I started merging https://github.com/microsoft/python-type-stubs/tree/main/stubs/networkx and noticed that most nodelist were typed as Iterable but at runtime they require __len__ or __contains__

Copy link
Contributor

github-actions bot commented May 5, 2025

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

@srittau srittau merged commit 41eb1a6 into python:main May 6, 2025
43 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