Skip to content

Commit 9951e66

Browse files
Update nx_pylab.pyi: allow node_color to be a list of strings as well (#14057)
1 parent 5a81bf5 commit 9951e66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/networkx/networkx/drawing/nx_pylab.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from _typeshed import Incomplete
2-
from collections.abc import Collection
2+
from collections.abc import Collection, Sequence
33

44
__all__ = [
55
"draw",
@@ -25,7 +25,7 @@ def draw_networkx_nodes(
2525
pos,
2626
nodelist: Collection[Incomplete] | None = None,
2727
node_size: Incomplete | int = 300,
28-
node_color: str = "#1f78b4",
28+
node_color: str | Sequence[str] = "#1f78b4",
2929
node_shape: str = "o",
3030
alpha=None,
3131
cmap=None,

0 commit comments

Comments
 (0)