mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 11:07:17 +08:00
Update typing_extensions imports in third-party stubs (#11245)
This commit is contained in:
@@ -2,8 +2,8 @@ from _typeshed import Incomplete, Unused
|
||||
from collections.abc import AsyncIterator, Awaitable, Callable, Generator, Iterable, Mapping, MutableMapping, Sequence
|
||||
from datetime import datetime, timedelta
|
||||
from types import TracebackType
|
||||
from typing import Any, ClassVar, NoReturn, Protocol, overload
|
||||
from typing_extensions import Literal, Self, TypeAlias, TypedDict
|
||||
from typing import Any, ClassVar, Literal, NoReturn, Protocol, TypedDict, overload
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
from redis import RedisError
|
||||
from redis.asyncio.connection import ConnectCallbackT, Connection, ConnectionPool
|
||||
|
||||
@@ -3,8 +3,8 @@ import enum
|
||||
import ssl
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Callable, Iterable, Mapping
|
||||
from typing import Any, Protocol, overload
|
||||
from typing_extensions import Literal, TypeAlias, TypedDict
|
||||
from typing import Any, Literal, Protocol, TypedDict, overload
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from redis import RedisError
|
||||
from redis.asyncio.retry import Retry
|
||||
|
||||
@@ -4,8 +4,8 @@ from collections.abc import Callable, Iterable, Iterator, Mapping, Sequence
|
||||
from datetime import datetime, timedelta
|
||||
from re import Pattern
|
||||
from types import TracebackType
|
||||
from typing import Any, ClassVar, TypeVar, overload
|
||||
from typing_extensions import Literal, Self, TypeAlias
|
||||
from typing import Any, ClassVar, Literal, TypeVar, overload
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
from redis import RedisError
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ from _typeshed import Incomplete, Unused
|
||||
from collections.abc import Callable, Iterable, Sequence
|
||||
from threading import Lock
|
||||
from types import TracebackType
|
||||
from typing import Any, ClassVar, NoReturn, Protocol
|
||||
from typing_extensions import Literal, Self
|
||||
from typing import Any, ClassVar, Literal, NoReturn, Protocol
|
||||
from typing_extensions import Self
|
||||
|
||||
from redis.client import CaseInsensitiveDict, PubSub, Redis, _ParseResponseOptions
|
||||
from redis.commands import CommandsParser, RedisClusterCommands
|
||||
|
||||
@@ -2,8 +2,7 @@ import builtins
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import AsyncIterator, Awaitable, Callable, Iterable, Iterator, Mapping, Sequence
|
||||
from datetime import datetime, timedelta
|
||||
from typing import Any, Generic, TypeVar, overload
|
||||
from typing_extensions import Literal
|
||||
from typing import Any, Generic, Literal, TypeVar, overload
|
||||
|
||||
from ..asyncio.client import Redis as AsyncRedis
|
||||
from ..client import _CommandOptions, _Key, _Value
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from typing import Any, ClassVar
|
||||
from typing_extensions import Literal
|
||||
from typing import Any, ClassVar, Literal
|
||||
|
||||
LABELS_ADDED: str
|
||||
NODES_CREATED: str
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from typing import Any, ClassVar
|
||||
from typing_extensions import Literal
|
||||
from typing import Any, ClassVar, Literal
|
||||
|
||||
FIELDNAME: Any
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Mapping
|
||||
from typing import Any
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
from typing import Any, Literal
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from .aggregation import AggregateRequest, AggregateResult, Cursor
|
||||
from .query import Query
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
from typing import Literal
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
_Key: TypeAlias = bytes | str | memoryview
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from ssl import SSLObject, SSLSocket
|
||||
from typing_extensions import Literal
|
||||
from typing import Literal
|
||||
|
||||
from cryptography.x509.base import Certificate
|
||||
from OpenSSL.SSL import Connection
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from collections.abc import Iterable, Iterator
|
||||
from typing import Any, TypeVar, overload
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
from typing import Any, Literal, TypeVar, overload
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from redis.client import Redis
|
||||
from redis.commands.sentinel import SentinelCommands
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
from _typeshed import Unused
|
||||
from collections.abc import Iterable, Mapping
|
||||
from contextlib import AbstractContextManager
|
||||
from typing import Any, TypeVar, overload
|
||||
from typing_extensions import Literal
|
||||
from typing import Any, Literal, TypeVar, overload
|
||||
|
||||
from .client import Pipeline, Redis, _StrType
|
||||
|
||||
|
||||
Reference in New Issue
Block a user