Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 6, 2024
1 parent 9e56f92 commit df4fd4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions django_redis/client/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions django_redis/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 179 in django_redis/pool.py

View check run for this annotation

Codecov / codecov/patch

django_redis/pool.py#L179

Added line #L179 was not covered by tests
)

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

Check warning on line 183 in django_redis/pool.py

View check run for this annotation

Codecov / codecov/patch

django_redis/pool.py#L183

Added line #L183 was not covered by tests
)

return super().get_connection_pool(cp_params)
Expand Down

0 comments on commit df4fd4d

Please sign in to comment.