Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions stubs/networkx/networkx/generators/mycielski.pyi
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from _typeshed import Incomplete

from networkx.classes.graph import Graph, _Node
from networkx.utils.backends import _dispatchable

__all__ = ["mycielskian", "mycielski_graph"]

@_dispatchable
def mycielskian(G: Graph[_Node], iterations: int = 1) -> Graph[Incomplete]: ...
def mycielskian(G: Graph[_Node], iterations: int = 1) -> Graph[int]: ...
@_dispatchable
def mycielski_graph(n: int) -> Graph[Incomplete]: ...
def mycielski_graph(n: int) -> Graph[int]: ...
3 changes: 1 addition & 2 deletions stubs/networkx/networkx/generators/time_series.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from _typeshed import Incomplete
from collections.abc import Sequence

from networkx.classes.graph import Graph
Expand All @@ -7,4 +6,4 @@ from networkx.utils.backends import _dispatchable
__all__ = ["visibility_graph"]

@_dispatchable
def visibility_graph(series: Sequence[float]) -> Graph[Incomplete]: ...
def visibility_graph(series: Sequence[float]) -> Graph[int]: ...
3 changes: 1 addition & 2 deletions stubs/networkx/networkx/generators/triads.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from _typeshed import Incomplete
from typing import Final

from networkx import DiGraph
Expand All @@ -9,4 +8,4 @@ __all__ = ["triad_graph"]
TRIAD_EDGES: Final[dict[str, list[str]]]

@_dispatchable
def triad_graph(triad_name: str) -> DiGraph[Incomplete]: ...
def triad_graph(triad_name: str) -> DiGraph[str]: ...
Loading