diff --git a/stubs/networkx/networkx/generators/mycielski.pyi b/stubs/networkx/networkx/generators/mycielski.pyi index ba383edc6ed0..d20251b141a0 100644 --- a/stubs/networkx/networkx/generators/mycielski.pyi +++ b/stubs/networkx/networkx/generators/mycielski.pyi @@ -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]: ... diff --git a/stubs/networkx/networkx/generators/time_series.pyi b/stubs/networkx/networkx/generators/time_series.pyi index aa9a3b755384..24ae43a33e08 100644 --- a/stubs/networkx/networkx/generators/time_series.pyi +++ b/stubs/networkx/networkx/generators/time_series.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Sequence from networkx.classes.graph import Graph @@ -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]: ... diff --git a/stubs/networkx/networkx/generators/triads.pyi b/stubs/networkx/networkx/generators/triads.pyi index 66fb47f93757..d402a4a6235e 100644 --- a/stubs/networkx/networkx/generators/triads.pyi +++ b/stubs/networkx/networkx/generators/triads.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from typing import Final from networkx import DiGraph @@ -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]: ...