diff options
author | Anas <anas.el.amraoui@live.com> | 2021-11-30 18:05:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-30 18:05:51 +0200 |
commit | b94e230b17d08e6c89d134e933c706256b79bc4a (patch) | |
tree | 993bd7565169229326b810b66939587431ab9dc6 /redis/commands/redismodules.py | |
parent | 368a25f9d163d784a8896f1c087582405e98e006 (diff) | |
download | redis-py-b94e230b17d08e6c89d134e933c706256b79bc4a.tar.gz |
Added black and isort (#1734)
Diffstat (limited to 'redis/commands/redismodules.py')
-rw-r--r-- | redis/commands/redismodules.py | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/redis/commands/redismodules.py b/redis/commands/redismodules.py index 5f629fb..2420d7b 100644 --- a/redis/commands/redismodules.py +++ b/redis/commands/redismodules.py @@ -1,4 +1,4 @@ -from json import JSONEncoder, JSONDecoder +from json import JSONDecoder, JSONEncoder class RedisModuleCommands: @@ -7,21 +7,18 @@ class RedisModuleCommands: """ def json(self, encoder=JSONEncoder(), decoder=JSONDecoder()): - """Access the json namespace, providing support for redis json. - """ + """Access the json namespace, providing support for redis json.""" from .json import JSON - jj = JSON( - client=self, - encoder=encoder, - decoder=decoder) + + jj = JSON(client=self, encoder=encoder, decoder=decoder) return jj def ft(self, index_name="idx"): - """Access the search namespace, providing support for redis search. - """ + """Access the search namespace, providing support for redis search.""" from .search import Search + s = Search(client=self, index_name=index_name) return s @@ -31,5 +28,6 @@ class RedisModuleCommands: """ from .timeseries import TimeSeries + s = TimeSeries(client=self) return s |