Skip to content

Commit

Permalink
Miscellaneous type annotation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanIsCoding committed Jan 8, 2025
1 parent 752555d commit a9136cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rustworkx/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def spring_layout(
def networkx_converter(graph: Any, keep_attributes: bool = ...) -> PyGraph | PyDiGraph: ...
def bipartite_layout(
graph: PyGraph[_S, _T] | PyDiGraph[_S, _T],
first_nodes,
first_nodes: set[int],
horizontal: bool = ...,
scale: int = ...,
center: tuple[float, float] | None = ...,
Expand Down Expand Up @@ -588,7 +588,7 @@ def dijkstra_search(
) -> None: ...
def bellman_ford_shortest_paths(
graph: PyGraph[_S, _T] | PyDiGraph[_S, _T],
source,
source: int,
target: int | None = ...,
weight_fn: Callable[[_T], float] | None = ...,
default_weight: float = ...,
Expand Down
4 changes: 2 additions & 2 deletions rustworkx/rustworkx.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ class PyGraph(Generic[_S, _T]):
def __getstate__(self) -> Any: ...
def __len__(self) -> int: ...
def __setitem__(self, idx: int, value: _S, /) -> None: ...
def __setstate__(self, state, /) -> None: ...
def __setstate__(self, state: Any, /) -> None: ...

# Digraph

Expand Down Expand Up @@ -1508,4 +1508,4 @@ class PyDiGraph(Generic[_S, _T]):
def __getstate__(self) -> Any: ...
def __len__(self) -> int: ...
def __setitem__(self, idx: int, value: _S, /) -> None: ...
def __setstate__(self, state, /) -> None: ...
def __setstate__(self, state: Any, /) -> None: ...

0 comments on commit a9136cd

Please sign in to comment.