File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 4
4
import itertools
5
5
import logging
6
6
import time
7
+ import typing
7
8
import uuid
8
9
9
10
from redis import asyncio as aioredis
20
21
decode_hosts ,
21
22
)
22
23
23
- import typing
24
-
25
24
if typing .TYPE_CHECKING :
26
- from redis .asyncio .connection import ConnectionPool
27
25
from redis .asyncio .client import Redis
26
+ from redis .asyncio .connection import ConnectionPool
28
27
from typing_extensions import Buffer
29
28
30
29
logger = logging .getLogger (__name__ )
Original file line number Diff line number Diff line change 1
1
import asyncio
2
2
import functools
3
3
import logging
4
+ import typing
4
5
import uuid
5
6
6
7
from redis import asyncio as aioredis
14
15
decode_hosts ,
15
16
)
16
17
17
- import typing
18
-
19
18
if typing .TYPE_CHECKING :
20
19
from redis .asyncio .client import Redis
21
20
from typing_extensions import Buffer
Original file line number Diff line number Diff line change 1
1
import binascii
2
2
import types
3
+ import typing
4
+
3
5
from redis import asyncio as aioredis
4
6
from redis .asyncio import sentinel as redis_sentinel
5
- import typing
6
7
7
8
if typing .TYPE_CHECKING :
8
- from typing_extensions import Buffer
9
+ from asyncio import AbstractEventLoop
9
10
10
- from redis .asyncio .connection import ConnectionPool
11
11
from redis .asyncio .client import Redis
12
- from asyncio import AbstractEventLoop
12
+ from redis .asyncio .connection import ConnectionPool
13
+ from typing_extensions import Buffer
13
14
14
- from .pubsub import RedisPubSubChannelLayer
15
15
from .core import RedisChannelLayer
16
+ from .pubsub import RedisPubSubChannelLayer
16
17
17
18
18
19
def _consistent_hash (value : typing .Union [str , "Buffer" ], ring_size : int ) -> int :
You can’t perform that action at this time.
0 commit comments