Skip to content

Commit db790e2

Browse files
committed
fix mypy decorator order issue
1 parent dad3b6d commit db790e2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

stubs/networkx/networkx/readwrite/json_graph/node_link.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ from networkx.utils.backends import _dispatchable
77
__all__ = ["node_link_data", "node_link_graph"]
88

99
@overload
10+
@deprecated(
11+
"""\
12+
The `link` argument is deprecated and will be removed in version `3.6`.
13+
Use the `edges` keyword instead."""
14+
)
1015
def node_link_data(
1116
G: Graph[_Node],
1217
*,
@@ -16,12 +21,8 @@ def node_link_data(
1621
key: str = "key",
1722
edges: str | None = None,
1823
nodes: str = "nodes",
24+
link: str | None = None,
1925
): ...
20-
@deprecated(
21-
"""\
22-
The `link` argument is deprecated and will be removed in version `3.6`.
23-
Use the `edges` keyword instead."""
24-
)
2526
@overload
2627
def node_link_data(
2728
G: Graph[_Node],
@@ -32,7 +33,6 @@ def node_link_data(
3233
key: str = "key",
3334
edges: str | None = None,
3435
nodes: str = "nodes",
35-
link: str | None = None,
3636
): ...
3737
@_dispatchable
3838
def node_link_graph(

0 commit comments

Comments
 (0)