mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 08:04:24 +08:00
Update typing_extensions imports in third-party stubs (#11245)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user