diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2022-04-27 16:23:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 16:23:43 +0300 |
commit | a696fe5e3155238fd8e9ec65224f94f6f25bb72b (patch) | |
tree | 52646f61c9536fc2581d04e69376fae9dac05e75 /redis/commands/core.py | |
parent | c198612a3ed67d78d7964b0253e96b3fa1d7d707 (diff) | |
download | redis-py-a696fe5e3155238fd8e9ec65224f94f6f25bb72b.tar.gz |
INFO - add support for taking multiple section arguments (#2145)
* add support for taking multiple section arguments
* skip test
Diffstat (limited to 'redis/commands/core.py')
-rw-r--r-- | redis/commands/core.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/redis/commands/core.py b/redis/commands/core.py index 1d0be8a..e6ab009 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -900,7 +900,9 @@ class ManagementCommands(CommandsProtocol): """ return self.execute_command("SELECT", index, **kwargs) - def info(self, section: Union[str, None] = None, **kwargs) -> ResponseT: + def info( + self, section: Union[str, None] = None, *args: List[str], **kwargs + ) -> ResponseT: """ Returns a dictionary containing information about the Redis server @@ -915,7 +917,7 @@ class ManagementCommands(CommandsProtocol): if section is None: return self.execute_command("INFO", **kwargs) else: - return self.execute_command("INFO", section, **kwargs) + return self.execute_command("INFO", section, *args, **kwargs) def lastsave(self, **kwargs) -> ResponseT: """ |