Skip to content

Conversation

@hugokerstens
Copy link
Contributor

This PR ensures that the deprecation warning for the link argument is only emitted when the link argument is explicitly specified.

Before this fix, nx.readwrite.node_link_data(G) would emit a deprecation warning, even though the link argument was not specified.

With this fix, the same snippet no longer emits a deprecation warning, but nx.readwrite.node_link_data(G, link="something") will emit a warning.

Copy link
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.

Thanks!

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

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

@srittau srittau merged commit d96c888 into python:main Nov 5, 2025
48 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