From 4dc48d610f009ad14ff19ec7fcc3ac5c960d9490 Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Mon, 7 Mar 2022 00:53:28 +0200 Subject: Implemented COMMAND DOCS by always throwing NotImplementedError (#2020) * command docs * Add support for AUTH (#1929) * Add support for AUTH * Fix linter error * test fix * fix test in cluster Co-authored-by: Chayim Co-authored-by: Chayim I. Kirshen Co-authored-by: dvora-h * Add support for JSON, TIMESERIES, BLOOM & GRAPH commands in cluster (#2032) Co-authored-by: Chayim * Add support for HSET items (#2006) * Add `items` parameter to `hset` * Add test for `hset` with `items` * Update CHANGES * fix test_profile Co-authored-by: Chayim Co-authored-by: dvora-h * Add cluster support for functions (#2016) * cluster support for functions * fix test_list_on_cluster mark * fix mark * cluster unstable url * fix * fix cluster url * skip tests * linters * linters * skip test Co-authored-by: Chayim Co-authored-by: dogukanteber <47397379+dogukanteber@users.noreply.github.com> Co-authored-by: Chayim I. Kirshen Co-authored-by: Marek Czaplicki --- redis/commands/core.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'redis/commands/core.py') diff --git a/redis/commands/core.py b/redis/commands/core.py index 457b5c8..e9bb286 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -743,6 +743,15 @@ class ManagementCommands(CommandsProtocol): def command_count(self, **kwargs) -> ResponseT: return self.execute_command("COMMAND COUNT", **kwargs) + def command_docs(self, *args): + """ + This function throws a NotImplementedError since it is intentionally + not supported. + """ + raise NotImplementedError( + "COMMAND DOCS is intentionally not implemented in the client." + ) + def config_get(self, pattern: PatternT = "*", **kwargs) -> ResponseT: """ Return a dictionary of configuration based on the ``pattern`` -- cgit v1.2.1