mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-05 09:27:38 +08:00
Update typing_extensions imports in third-party stubs (#11245)
This commit is contained in:
@@ -6,8 +6,8 @@ from abc import ABCMeta
|
||||
from collections.abc import Callable, Generator, Iterable, Iterator, Sequence
|
||||
from io import BytesIO
|
||||
from re import Pattern
|
||||
from typing import IO, Any, ClassVar, Protocol, TypeVar, overload, type_check_only
|
||||
from typing_extensions import Literal, Self, TypeAlias
|
||||
from typing import IO, Any, ClassVar, Literal, Protocol, TypeVar, overload, type_check_only
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
from ._vendored_packaging import requirements as packaging_requirements, version as packaging_version
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing_extensions import Final
|
||||
from typing import Final
|
||||
|
||||
__all__ = ["VERSION_PATTERN", "parse", "Version", "InvalidVersion"]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing_extensions import Literal
|
||||
from typing import Literal
|
||||
|
||||
def newer(source, target): ...
|
||||
def newer_pairwise(sources, targets, newer=...): ...
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from collections.abc import Iterable
|
||||
from re import Pattern
|
||||
from typing import overload
|
||||
from typing_extensions import Literal
|
||||
from typing import Literal, overload
|
||||
|
||||
# class is entirely undocumented
|
||||
class FileList:
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from collections.abc import Callable, Mapping
|
||||
from typing import Any
|
||||
from typing_extensions import Literal
|
||||
from typing import Any, Literal
|
||||
|
||||
def get_host_platform() -> str: ...
|
||||
def get_platform() -> str: ...
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Iterable, Iterator
|
||||
from typing import ClassVar
|
||||
from typing_extensions import Self, TypedDict
|
||||
from typing import ClassVar, TypedDict
|
||||
from typing_extensions import Self
|
||||
|
||||
from pkg_resources import Environment
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing_extensions import Final
|
||||
from typing import Final
|
||||
|
||||
from .. import Command, SetuptoolsDeprecationWarning
|
||||
from .._distutils.filelist import FileList as _FileList
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import IO, Any
|
||||
from typing_extensions import Literal
|
||||
from typing import IO, Any, Literal
|
||||
|
||||
__all__ = ["Require", "find_module", "get_module_constant", "extract_constant"]
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import sys
|
||||
from types import TracebackType
|
||||
from typing import Any
|
||||
from typing_extensions import Literal, Self
|
||||
from typing import Any, Literal
|
||||
from typing_extensions import Self
|
||||
|
||||
from ._distutils.errors import DistutilsError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user