mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-09 11:11:26 +08:00
Update typing_extensions imports in third-party stubs (#11245)
This commit is contained in:
@@ -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