Skip to content

Commit abef7e2

Browse files
authored
Miscellaneous type annotation fixes (#1356)
1 parent a9aeaef commit abef7e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rustworkx/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def spring_layout(
459459
def networkx_converter(graph: Any, keep_attributes: bool = ...) -> PyGraph | PyDiGraph: ...
460460
def bipartite_layout(
461461
graph: PyGraph[_S, _T] | PyDiGraph[_S, _T],
462-
first_nodes,
462+
first_nodes: set[int],
463463
horizontal: bool = ...,
464464
scale: int = ...,
465465
center: tuple[float, float] | None = ...,
@@ -594,7 +594,7 @@ def dijkstra_search(
594594
) -> None: ...
595595
def bellman_ford_shortest_paths(
596596
graph: PyGraph[_S, _T] | PyDiGraph[_S, _T],
597-
source,
597+
source: int,
598598
target: int | None = ...,
599599
weight_fn: Callable[[_T], float] | None = ...,
600600
default_weight: float = ...,

rustworkx/rustworkx.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ class PyGraph(Generic[_S, _T]):
13121312
def __getstate__(self) -> Any: ...
13131313
def __len__(self) -> int: ...
13141314
def __setitem__(self, idx: int, value: _S, /) -> None: ...
1315-
def __setstate__(self, state, /) -> None: ...
1315+
def __setstate__(self, state: Any, /) -> None: ...
13161316

13171317
# Digraph
13181318

@@ -1513,4 +1513,4 @@ class PyDiGraph(Generic[_S, _T]):
15131513
def __getstate__(self) -> Any: ...
15141514
def __len__(self) -> int: ...
15151515
def __setitem__(self, idx: int, value: _S, /) -> None: ...
1516-
def __setstate__(self, state, /) -> None: ...
1516+
def __setstate__(self, state: Any, /) -> None: ...

0 commit comments

Comments
 (0)