Skip to content

Commit df4fd4d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9e56f92 commit df4fd4d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

django_redis/client/default.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def expire(
328328

329329
# for some strange reason mypy complains,
330330
# saying that timeout type is float | timedelta
331-
return client.expire(key, timeout)
331+
return client.expire(key, timeout)
332332

333333
def pexpire(
334334
self,
@@ -349,7 +349,7 @@ def pexpire(
349349
# is fixed.
350350
# for some strange reason mypy complains,
351351
# saying that timeout type is float | timedelta
352-
return bool(client.pexpire(key, timeout))
352+
return bool(client.pexpire(key, timeout))
353353

354354
def pexpire_at(
355355
self,

django_redis/pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ def get_connection_pool(self, params):
176176
new_query = urlencode(query_params, doseq=True)
177177

178178
new_url = urlunparse(
179-
(url.scheme,url.netloc,url.path,url.params,new_query,url.fragment)
179+
(url.scheme, url.netloc, url.path, url.params, new_query, url.fragment)
180180
)
181181

182182
cp_params.update(
183-
service_name=url.hostname, sentinel_manager=self._sentinel,url=new_url
183+
service_name=url.hostname, sentinel_manager=self._sentinel, url=new_url
184184
)
185185

186186
return super().get_connection_pool(cp_params)

0 commit comments

Comments
 (0)