mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-21 09:08:27 +08:00
Update typing_extensions imports in third-party stubs (#11245)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# Not available at runtime. Contains type definitions that are otherwise not exposed and not part of a specific module.
|
||||
from _typeshed import Incomplete, Unused
|
||||
from collections.abc import Iterable
|
||||
from typing import overload
|
||||
from typing_extensions import Literal, Self, final
|
||||
from typing import Literal, final, overload
|
||||
from typing_extensions import Self
|
||||
|
||||
class ArgNotFound: ...
|
||||
class PyOleEmpty: ...
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
# "KeyError: 'pywintypes'"
|
||||
from _typeshed import Incomplete
|
||||
from datetime import datetime
|
||||
from typing import NoReturn
|
||||
from typing_extensions import Literal, Never
|
||||
from typing import Literal, NoReturn
|
||||
from typing_extensions import Never
|
||||
|
||||
import _win32typing
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
from typing import Literal
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
import _win32typing
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from _typeshed import Incomplete, ReadableBuffer
|
||||
from collections.abc import Callable, Iterable
|
||||
from typing_extensions import TypedDict
|
||||
from typing import TypedDict
|
||||
|
||||
import _win32typing
|
||||
from win32.lib.pywintypes import error as error
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from _typeshed import Incomplete, ReadableBuffer, WriteableBuffer
|
||||
from collections.abc import Callable
|
||||
from typing import TypeVar
|
||||
from typing_extensions import Literal
|
||||
from typing import Literal, TypeVar
|
||||
|
||||
import _win32typing
|
||||
from win32.lib.pywintypes import error as error
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing_extensions import Literal
|
||||
from typing import Literal
|
||||
|
||||
import _win32typing
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing_extensions import Final, TypeAlias
|
||||
from typing import Final
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
import _win32typing
|
||||
from win32com.client import dynamic as dynamic, gencache as gencache
|
||||
|
||||
Reference in New Issue
Block a user