mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 01:38:40 +08:00
Import generics from standard modules in all third-party stubs (#7791)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from _typeshed import Self
|
||||
from collections.abc import AsyncIterator, Callable, Iterable, Mapping, MutableMapping
|
||||
from typing import Any, Awaitable, Generic, NoReturn, Protocol
|
||||
from collections.abc import AsyncIterator, Awaitable, Callable, Iterable, Mapping, MutableMapping
|
||||
from typing import Any, Generic, NoReturn, Protocol
|
||||
from typing_extensions import TypeAlias, TypedDict
|
||||
|
||||
from redis.asyncio.connection import Connection, ConnectionPool
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing import Any, Awaitable
|
||||
from collections.abc import Awaitable
|
||||
from typing import Any
|
||||
|
||||
from redis.asyncio import Redis
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from collections.abc import Callable
|
||||
from typing import Any, Awaitable, TypeVar
|
||||
from collections.abc import Awaitable, Callable
|
||||
from typing import Any, TypeVar
|
||||
|
||||
from redis.backoff import AbstractBackoff
|
||||
from redis.exceptions import RedisError
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import builtins
|
||||
from collections.abc import AsyncIterator, Callable, Iterable, Iterator, Mapping, Sequence
|
||||
from collections.abc import AsyncIterator, Awaitable, Callable, Iterable, Iterator, Mapping, Sequence
|
||||
from datetime import datetime, timedelta
|
||||
from typing import Any, Awaitable, Generic, TypeVar, overload
|
||||
from typing import Any, Generic, TypeVar, overload
|
||||
from typing_extensions import Literal
|
||||
|
||||
from ..asyncio.client import Redis as AsyncRedis
|
||||
|
||||
Reference in New Issue
Block a user