mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
Update nx_pylab.pyi: allow node_color to be a list of strings as well (#14057)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Collection
|
||||
from collections.abc import Collection, Sequence
|
||||
|
||||
__all__ = [
|
||||
"draw",
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user