8000 Update nx_pylab.pyi: allow node_color to be a list of strings as well by wyattscarpenter · Pull Request #14057 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Update nx_pylab.pyi: allow node_color to be a list of strings as well#14057

Merged
srittau merged 5 commits intopython:mainfrom
wyattscarpenter:patch-1
May 14, 2025
Merged

Update nx_pylab.pyi: allow node_color to be a list of strings as well#14057
srittau merged 5 commits intopython:mainfrom
wyattscarpenter:patch-1

Conversation

@wyattscarpenter
Copy link
Contributor

As per the documentation https://networkx.org/documentation/latest/reference/generated/networkx.drawing.nx_pylab.draw_networkx_nodes.html#draw-networkx-nodes and program behavior.

Fun fact: I'm actually using version 2 of this library, 2 majors behind, and it accepts list[str] as well there as well!

@github-actions

This comment has been minimized.

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, one remark below.

@github-actions
Copy link
Contributor

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

@srittau srittau merged commit 9951e66 into python:main May 14, 2025
49 checks passed
@wyattscarpenter wyattscarpenter deleted the patch-1 branch May 14, 2025 12:58
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

0