Skip to content

Commit c7968ef

Browse files
authored
Enhance annotation of add_weighted_edges_from()
Enhance annotation of add_weighted_edges_from(...) in networkx.algorithms.planarity to match the (also enhanced) annotation of the add_weighted_edges_from(...) method in networkx.classees.graph
1 parent b97fe80 commit c7968ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stubs/networkx/networkx/algorithms/planarity.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from decimal import Decimal
12
from _typeshed import Incomplete, Unused
23
from collections.abc import Generator, Iterable, Mapping, MutableSet, Reversible
34
from typing import NoReturn
@@ -109,5 +110,5 @@ class PlanarEmbedding(DiGraph[_Node]):
109110
def add_edge(self, u_of_edge: _Node, v_of_edge: _Node, **attr: Unused) -> NoReturn: ...
110111
def add_edges_from(self, ebunch_to_add: Iterable[_EdgePlus[_Node]], **attr: Unused) -> NoReturn: ...
111112
def add_weighted_edges_from(
112-
self, ebunch_to_add: Iterable[tuple[_Node, _Node, float]], weight: str = "weight", **attr: Unused
113+
self, ebunch_to_add: Iterable[tuple[_Node, _Node, float|Decimal|None]], weight: str = "weight", **attr: Unused
113114
) -> NoReturn: ...

0 commit comments

Comments
 (0)