Skip to content

[networkx] Add generic type for node and edge data#15660

Merged
srittau merged 4 commits into
python:mainfrom
ThePiep:main
May 11, 2026
Merged

[networkx] Add generic type for node and edge data#15660
srittau merged 4 commits into
python:mainfrom
ThePiep:main

Conversation

@ThePiep
Copy link
Copy Markdown
Contributor

@ThePiep ThePiep commented Apr 21, 2026

See: #15659

@github-actions

This comment has been minimized.

Copy link
Copy Markdown
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really qualified to judge the correctness of this change, but it looks plausible, and the defaults for the TypeVars should ensure that this is compatible with existing code (and mypy_primer agrees).

@github-actions
Copy link
Copy Markdown
Contributor

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

@srittau srittau merged commit 148b3c2 into python:main May 11, 2026
42 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