Skip to content

[networkx] Use concrete node types for the atlas, cograph and duplication generators - #16793

Merged
srittau merged 1 commit into
python:mainfrom
dannyshafer:networkx-atlas-cograph-duplication-node-types
Nov 13, 2026
Merged

srittau merged 1 commit into
python:mainfrom
dannyshafer:networkx-atlas-cograph-duplication-node-types

Conversation

@dannyshafer

Copy link
Copy Markdown
Contributor

These generators all build their graphs on integer nodes, so they now return Graph[int] instead of Graph[Incomplete] (or no annotation, for partial_duplication_graph) (graph_atlas, graph_atlas_g, random_cograph, partial_duplication_graph, duplication_divergence_graph).

Written with Claude Code (an AI coding agent).

…tion generators

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X4cLHhP5YNsEEjRYJGtw7C
@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 31a5b4c into python:main Nov 13, 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.

2 participants