Skip to content

Commit 7ae857f

Browse files
[networkx] Fix type hints for networkx birank personalization parameters (#15889)
1 parent 8c73bec commit 7ae857f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

stubs/networkx/networkx/algorithms/bipartite/link_analysis.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from collections.abc import Iterable
1+
from collections.abc import Iterable, Mapping
22

33
from networkx.classes.graph import Graph, _Node
44
from networkx.utils.backends import _dispatchable
@@ -12,8 +12,8 @@ def birank(
1212
*,
1313
alpha: float | None = None,
1414
beta: float | None = None,
15-
top_personalization: dict[str, int] | None = None,
16-
bottom_personalization: dict[str, int] | None = None,
15+
top_personalization: Mapping[_Node, float] | None = None,
16+
bottom_personalization: Mapping[_Node, float] | None = None,
1717
max_iter: int = 100,
1818
tol: float = 1.0e-6,
1919
weight: str | None = "weight",

0 commit comments

Comments
 (0)