diff --git a/redis/commands/core.py b/redis/commands/core.py index 031781d75d..9d81e9772c 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -2823,13 +2823,13 @@ def rpush(self, name: str, *values: FieldT) -> Union[Awaitable[int], int]: """ return self.execute_command("RPUSH", name, *values) - def rpushx(self, name: str, value: str) -> Union[Awaitable[int], int]: + def rpushx(self, name: str, *values: str) -> Union[Awaitable[int], int]: """ Push ``value`` onto the tail of the list ``name`` if ``name`` exists For more information see https://redis.io/commands/rpushx """ - return self.execute_command("RPUSHX", name, value) + return self.execute_command("RPUSHX", name, *values) def lpos( self,