From a696fe5e3155238fd8e9ec65224f94f6f25bb72b Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Wed, 27 Apr 2022 16:23:43 +0300 Subject: INFO - add support for taking multiple section arguments (#2145) * add support for taking multiple section arguments * skip test --- redis/commands/core.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'redis/commands/core.py') 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: """ -- cgit v1.2.1