Skip to content

[networkx] Use concrete node types for a few generators - #16603

Merged
srittau merged 1 commit into
python:mainfrom
dannyshafer:networkx-generator-node-types
Oct 23, 2026
Merged

srittau merged 1 commit into
python:mainfrom
dannyshafer:networkx-generator-node-types

Conversation

@dannyshafer

Copy link
Copy Markdown
Contributor

These generators always produce integer or string nodes, so their return types now say so instead of using Incomplete: mycielskian relabels with convert_node_labels_to_integers (upstream), mycielski_graph builds on empty_graph/path_graph and mycielskian (upstream), visibility_graph starts from path_graph(len(series)) (upstream), and triad_graph adds the nodes "abc" (upstream).

Written with Claude Code (an AI coding agent).

@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 75a9cf4 into python:main Oct 23, 2026
74 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.

3 participants