From dafaad2345b4a3a91f82fe0dadb5d0761545c564 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 17:24:32 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- django_redis/cache.py | 2 +- django_redis/client/default.py | 2 +- django_redis/client/herd.py | 2 +- django_redis/client/sharded.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/django_redis/cache.py b/django_redis/cache.py index 732ca9df..57cc7e43 100644 --- a/django_redis/cache.py +++ b/django_redis/cache.py @@ -77,7 +77,7 @@ def client(self): return self._client @omit_exception - def set(self, *args, **kwargs): # noqa: A003 + def set(self, *args, **kwargs): return self.client.set(*args, **kwargs) @omit_exception diff --git a/django_redis/client/default.py b/django_redis/client/default.py index 9485627f..69ff0df4 100644 --- a/django_redis/client/default.py +++ b/django_redis/client/default.py @@ -144,7 +144,7 @@ def disconnect(self, index: int = 0, client: Optional[Redis] = None) -> None: if client is not None: self.connection_factory.disconnect(client) - def set( # noqa: A003 + def set( self, key: KeyT, value: EncodableT, diff --git a/django_redis/client/herd.py b/django_redis/client/herd.py index 70cb0459..94d539cd 100644 --- a/django_redis/client/herd.py +++ b/django_redis/client/herd.py @@ -57,7 +57,7 @@ def _unpack(self, value): return unpacked, False - def set( # noqa: A003 + def set( self, key, value, diff --git a/django_redis/client/sharded.py b/django_redis/client/sharded.py index 7a0fb0f4..dbb1d200 100644 --- a/django_redis/client/sharded.py +++ b/django_redis/client/sharded.py @@ -78,7 +78,7 @@ def get_many(self, keys, version=None): recovered_data[map_keys[key]] = value return recovered_data - def set( # noqa: A003 + def set( self, key, value,