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 Jan 15, 2024
1 parent 19337c6 commit dafaad2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion django_redis/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion django_redis/client/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion django_redis/client/herd.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _unpack(self, value):

return unpacked, False

def set( # noqa: A003
def set(
self,
key,
value,
Expand Down
2 changes: 1 addition & 1 deletion django_redis/client/sharded.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dafaad2

Please sign in to comment.