We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5695c12 commit c24376eCopy full SHA for c24376e
aiohttp_session/redis_storage.py
@@ -9,7 +9,15 @@
9
try:
10
from redis import VERSION as REDIS_VERSION, asyncio as aioredis
11
except ImportError: # pragma: no cover
12
- aioredis = None # type: ignore[assignment]
+ try:
13
+ import aioredis # type: ignore[import, no-redef] # noqa: I900
14
+ except ImportError:
15
+ aioredis = None # type: ignore[assignment]
16
+ else:
17
+ import warnings
18
+ warnings.warn("aioredis library is deprecated, please replace with redis.",
19
+ DeprecationWarning)
20
+ REDIS_VERSION = (4, 3)
21
22
23
class RedisStorage(AbstractStorage):
0 commit comments