Update typing_extensions imports in third-party stubs (#11245)

This commit is contained in:
Sebastian Rittau
2024-01-05 15:40:13 +01:00
committed by GitHub
parent 1b471a9a0a
commit b6eaadcfe5
488 changed files with 715 additions and 845 deletions

View File

@@ -1,7 +1,6 @@
from _typeshed import Incomplete
from collections.abc import Generator, Iterable
from typing import TypeVar, overload
from typing_extensions import Literal
from typing import Literal, TypeVar, overload
from networkx.classes.graph import Graph, _Node

View File

@@ -1,7 +1,6 @@
from _typeshed import Incomplete
from collections.abc import Callable, Generator
from typing import overload
from typing_extensions import Literal
from typing import Literal, overload
from networkx.classes.graph import Graph, _Node

View File

@@ -1,7 +1,6 @@
from _typeshed import Incomplete, SupportsItems, SupportsKeysAndGetItem, Unused
from collections.abc import Generator, Hashable, Iterable, Iterator
from typing import TypeVar, overload
from typing_extensions import Literal
from typing import Literal, TypeVar, overload
from networkx.algorithms.planarity import PlanarEmbedding
from networkx.classes.digraph import DiGraph

View File

@@ -1,7 +1,7 @@
from _typeshed import Incomplete, Unused
from collections.abc import Iterator, Mapping, Set as AbstractSet
from typing import Any, Generic, TypeVar, overload
from typing_extensions import Literal, Self
from typing import Any, Generic, Literal, TypeVar, overload
from typing_extensions import Self
from networkx.classes.graph import Graph, _Edge, _NBunch, _Node

View File

@@ -1,7 +1,7 @@
from _typeshed import Incomplete
from collections.abc import Callable, Collection, Hashable, Iterable
from typing import TypeVar, overload
from typing_extensions import Literal, TypeAlias
from typing import Literal, TypeVar, overload
from typing_extensions import TypeAlias
import numpy
from networkx.classes.graph import Graph, _Node

View File

@@ -1,6 +1,6 @@
from _typeshed import Incomplete
from collections.abc import Generator
from typing_extensions import Final
from typing import Final
__all__ = [
"write_graphml",

View File

@@ -1,7 +1,6 @@
from _typeshed import Incomplete
from collections.abc import Hashable, Mapping
from typing import TypeVar, overload
from typing_extensions import Literal
from typing import Literal, TypeVar, overload
from networkx.classes.digraph import DiGraph
from networkx.classes.graph import Graph