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
5 changes: 2 additions & 3 deletions stubs/networkx/networkx/generators/atlas.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import sys
from _typeshed import Incomplete
from typing import Final

from networkx.utils.backends import _dispatchable
Expand All @@ -17,6 +16,6 @@ NUM_GRAPHS: Final = 1253
ATLAS_FILE: Final[Traversable]

@_dispatchable
def graph_atlas(i: int) -> Graph[Incomplete]: ...
def graph_atlas(i: int) -> Graph[int]: ...
@_dispatchable
def graph_atlas_g() -> list[Graph[Incomplete]]: ...
def graph_atlas_g() -> list[Graph[int]]: ...
4 changes: 1 addition & 3 deletions stubs/networkx/networkx/generators/cographs.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from _typeshed import Incomplete

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

__all__ = ["random_cograph"]

@_dispatchable
def random_cograph(n: int, seed=None) -> Graph[Incomplete]: ...
def random_cograph(n: int, seed=None) -> Graph[int]: ...
6 changes: 2 additions & 4 deletions stubs/networkx/networkx/generators/duplication.pyi
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from _typeshed import Incomplete

from networkx.utils.backends import _dispatchable

from ..classes.graph import Graph

__all__ = ["partial_duplication_graph", "duplication_divergence_graph"]

@_dispatchable
def partial_duplication_graph(N: int, n: int, p: float, q: float, seed=None): ...
def partial_duplication_graph(N: int, n: int, p: float, q: float, seed=None) -> Graph[int]: ...
@_dispatchable
def duplication_divergence_graph(n: int, p: float, seed=None) -> Graph[Incomplete]: ...
def duplication_divergence_graph(n: int, p: float, seed=None) -> Graph[int]: ...
Loading