Skip to content

Commit 9a3fed2

Browse files
committed
Address one more incomplete
1 parent 659db5b commit 9a3fed2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stubs/networkx/networkx/drawing/nx_pylab.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class _DrawNetworkxKwds(TypedDict, Generic[_Node], total=False):
7171
edgecolors: Literal["face", "none"] | ColorType | Collection[ColorType] | Collection[float] | None
7272
margins: float | tuple[float, float] | None
7373
# draw edges keywords; keep in sync with draw_networkx_edges
74-
edgelist: Incomplete
74+
edgelist: Collection[_Node | Hashable] | None # (u, v, k) for multigraphs and (u, v) for simple graphs
7575
width: float | Collection[float]
7676
edge_color: ColorType | Collection[ColorType]
7777
style: str | Collection[str]
@@ -153,7 +153,7 @@ def draw_networkx(
153153
ax: Axes | None = None,
154154
**kwds: Unpack[_DrawNetworkxKwds[_Node]],
155155
) -> None: ...
156-
def draw_networkx_nodes(
156+
def draw_networkx_nodes( # keep in sync with _DrawNetworkxKwds above
157157
G: Graph[_Node],
158158
pos: Mapping[_Node, Collection[float]],
159159
nodelist: Collection[_Node] | None = None,
@@ -172,7 +172,7 @@ def draw_networkx_nodes(
172172
hide_ticks: bool = True,
173173
) -> PathCollection: ...
174174
@overload # arrows=None -> LineCollection if G is undirected, list[FancyArrowPatch] if G is directed
175-
def draw_networkx_edges(
175+
def draw_networkx_edges( # keep in sync with _DrawNetworkxKwds above
176176
G: Graph[_Node],
177177
pos: Mapping[_Node, Collection[float]],
178178
edgelist: Collection[_Node | Hashable] | None = None, # (u, v, k) for multigraphs and (u, v) for simple graphs
@@ -268,7 +268,7 @@ def draw_networkx_edges(
268268
node_shape: str = "o",
269269
hide_ticks: bool = True,
270270
) -> LineCollection: ...
271-
def draw_networkx_labels(
271+
def draw_networkx_labels( # keep in sync with _DrawNetworkxKwds above
272272
G: Graph[_Node],
273273
pos: Mapping[_Node, Collection[float]],
274274
labels: Mapping[_Node, object] | None = None, # labels are explicitly converted to str

0 commit comments

Comments
 (0)