Skip to content

Commit 852c36f

Browse files
committed
Codestyle changes
1 parent e6ebab6 commit 852c36f

File tree

9 files changed

+515
-234
lines changed

9 files changed

+515
-234
lines changed

redis/cache.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from cachetools import LRUCache, LFUCache, RRCache, Cache, TTLCache
66

7-
T = TypeVar('T')
7+
T = TypeVar("T")
88

99

1010
class EvictionPolicy(Enum):
@@ -152,4 +152,3 @@ def get_cache(self) -> Cache:
152152

153153
def _get_cache_class(self, eviction_policy: EvictionPolicy) -> CacheClass:
154154
return CacheClass[eviction_policy.value]
155-

redis/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class initializer. In the case of conflicting arguments, querystring
149149
client = cls(
150150
connection_pool=connection_pool,
151151
single_connection_client=single_connection_client,
152-
use_cache=use_cache
152+
use_cache=use_cache,
153153
)
154154
client.auto_close_connection_pool = True
155155
return client

redis/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ def reset(self) -> None:
13221322
self.primary_to_idx.clear()
13231323

13241324

1325-
class NodesManager():
1325+
class NodesManager:
13261326
def __init__(
13271327
self,
13281328
startup_nodes,

0 commit comments

Comments
 (0)