From df4fd4d82728e432d7e49505beba82bf7a412ce3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 6 Sep 2024 13:38:17 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- django_redis/client/default.py | 4 ++-- django_redis/pool.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/django_redis/client/default.py b/django_redis/client/default.py index 420fb618..b0827f72 100644 --- a/django_redis/client/default.py +++ b/django_redis/client/default.py @@ -328,7 +328,7 @@ def expire( # for some strange reason mypy complains, # saying that timeout type is float | timedelta - return client.expire(key, timeout) + return client.expire(key, timeout) def pexpire( self, @@ -349,7 +349,7 @@ def pexpire( # is fixed. # for some strange reason mypy complains, # saying that timeout type is float | timedelta - return bool(client.pexpire(key, timeout)) + return bool(client.pexpire(key, timeout)) def pexpire_at( self, diff --git a/django_redis/pool.py b/django_redis/pool.py index 780f2e4b..7e01f782 100644 --- a/django_redis/pool.py +++ b/django_redis/pool.py @@ -176,11 +176,11 @@ def get_connection_pool(self, params): new_query = urlencode(query_params, doseq=True) new_url = urlunparse( - (url.scheme,url.netloc,url.path,url.params,new_query,url.fragment) + (url.scheme, url.netloc, url.path, url.params, new_query, url.fragment) ) cp_params.update( - service_name=url.hostname, sentinel_manager=self._sentinel,url=new_url + service_name=url.hostname, sentinel_manager=self._sentinel, url=new_url ) return super().get_connection_pool(cp_params)