Update typing_extensions imports in third-party stubs (#11245)

This commit is contained in:
Sebastian Rittau
2024-01-05 15:40:13 +01:00
committed by GitHub
parent 1b471a9a0a
commit b6eaadcfe5
488 changed files with 715 additions and 845 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -1,5 +1,4 @@
from typing import Any, ClassVar
from typing_extensions import Literal
from typing import Any, ClassVar, Literal
FIELDNAME: Any

View File

@@ -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

View File

@@ -1,4 +1,5 @@
from typing_extensions import Literal, TypeAlias
from typing import Literal
from typing_extensions import TypeAlias
_Key: TypeAlias = bytes | str | memoryview

View File

@@ -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

View File

@@ -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

View File

@@ -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