From 01d82f5a9947d5df30880dac4225211a581086e3 Mon Sep 17 00:00:00 2001 From: vladvildanov Date: Fri, 9 Aug 2024 16:25:27 +0300 Subject: [PATCH] Added more arguments to lambda's --- redis/commands/bf/info.py | 2 +- redis/commands/json/__init__.py | 2 +- redis/commands/timeseries/info.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/redis/commands/bf/info.py b/redis/commands/bf/info.py index 1a876c1655..e05c0ae8c1 100644 --- a/redis/commands/bf/info.py +++ b/redis/commands/bf/info.py @@ -62,7 +62,7 @@ class CMSInfo: depth = None count = None - def __init__(self, args): + def __init__(self, args, **kwargs): response = dict(zip(map(nativestr, args[::2]), args[1::2])) self.width = response["width"] self.depth = response["depth"] diff --git a/redis/commands/json/__init__.py b/redis/commands/json/__init__.py index 01077e6b88..02ca5475fd 100644 --- a/redis/commands/json/__init__.py +++ b/redis/commands/json/__init__.py @@ -79,7 +79,7 @@ def __init__( self.__encoder__ = encoder self.__decoder__ = decoder - def _decode(self, obj): + def _decode(self, obj, **kwargs): """Get the decoder.""" if obj is None: return obj diff --git a/redis/commands/timeseries/info.py b/redis/commands/timeseries/info.py index 861e3ef003..d6ea93e972 100644 --- a/redis/commands/timeseries/info.py +++ b/redis/commands/timeseries/info.py @@ -23,7 +23,7 @@ class TSInfo: chunk_size = None duplicate_policy = None - def __init__(self, args): + def __init__(self, args, **options): """ Hold information and statistics on the time-series.