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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stubs/networkx/networkx/drawing/nx_pylab.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from _typeshed import Incomplete
from collections.abc import Collection
from collections.abc import Collection, Sequence

__all__ = [
"draw",
Expand All @@ -25,7 +25,7 @@ def draw_networkx_nodes(
pos,
nodelist: Collection[Incomplete] | None = None,
node_size: Incomplete | int = 300,
node_color: str = "#1f78b4",
node_color: str | Sequence[str] = "#1f78b4",
node_shape: str = "o",
alpha=None,
cmap=None,
Expand Down
0