mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 19:17:16 +08:00
Update typing_extensions imports in third-party stubs (#11245)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Callable
|
||||
from logging import Logger
|
||||
from typing import Any
|
||||
from typing_extensions import Final, Self
|
||||
from typing import Any, Final
|
||||
from typing_extensions import Self
|
||||
|
||||
from .callback import CallbackManager
|
||||
from .connection import Connection
|
||||
|
||||
@@ -2,8 +2,8 @@ from abc import ABCMeta
|
||||
from collections.abc import ItemsView, Mapping, ValuesView
|
||||
from io import StringIO as StringIO
|
||||
from re import Pattern
|
||||
from typing import Any, TypeVar
|
||||
from typing_extensions import Final, Literal, SupportsIndex, TypeGuard
|
||||
from typing import Any, Final, Literal, SupportsIndex, TypeVar
|
||||
from typing_extensions import TypeGuard
|
||||
from urllib.parse import parse_qs, quote, unquote, urlencode as urlencode, urlparse as urlparse
|
||||
|
||||
_KT = TypeVar("_KT")
|
||||
|
||||
@@ -2,7 +2,8 @@ import abc
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Callable
|
||||
from logging import Logger
|
||||
from typing_extensions import Final, Self
|
||||
from typing import Final
|
||||
from typing_extensions import Self
|
||||
|
||||
from .callback import CallbackManager
|
||||
from .channel import Channel
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import builtins
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
from typing_extensions import Literal, Self, TypeAlias
|
||||
from typing import ClassVar, Literal
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
from .amqp_object import Class, Method, Properties
|
||||
|
||||
|
||||
Reference in New Issue
Block a user