From fe3e4c6a12582f89fc279b2a268cbcc510475430 Mon Sep 17 00:00:00 2001 From: SwordHeart <37992593+zxjlm@users.noreply.github.com> Date: Wed, 23 Aug 2023 07:26:12 +0000 Subject: [PATCH] Fix type hint of arbitrary argument lists --- redis/commands/core.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/redis/commands/core.py b/redis/commands/core.py index 031781d75d..eb9daef88c 100644 --- a/redis/commands/core.py +++ b/redis/commands/core.py @@ -5252,12 +5252,12 @@ class ScriptCommands(CommandsProtocol): """ def _eval( - self, command: str, script: str, numkeys: int, *keys_and_args: list + self, command: str, script: str, numkeys: int, *keys_and_args: str ) -> Union[Awaitable[str], str]: return self.execute_command(command, script, numkeys, *keys_and_args) def eval( - self, script: str, numkeys: int, *keys_and_args: list + self, script: str, numkeys: int, *keys_and_args: str ) -> Union[Awaitable[str], str]: """ Execute the Lua ``script``, specifying the ``numkeys`` the script @@ -5272,7 +5272,7 @@ def eval( return self._eval("EVAL", script, numkeys, *keys_and_args) def eval_ro( - self, script: str, numkeys: int, *keys_and_args: list + self, script: str, numkeys: int, *keys_and_args: str ) -> Union[Awaitable[str], str]: """ The read-only variant of the EVAL command @@ -5291,7 +5291,7 @@ def _evalsha( return self.execute_command(command, sha, numkeys, *keys_and_args) def evalsha( - self, sha: str, numkeys: int, *keys_and_args: list + self, sha: str, numkeys: int, *keys_and_args: str ) -> Union[Awaitable[str], str]: """ Use the ``sha`` to execute a Lua script already registered via EVAL @@ -5307,7 +5307,7 @@ def evalsha( return self._evalsha("EVALSHA", sha, numkeys, *keys_and_args) def evalsha_ro( - self, sha: str, numkeys: int, *keys_and_args: list + self, sha: str, numkeys: int, *keys_and_args: str ) -> Union[Awaitable[str], str]: """ The read-only variant of the EVALSHA command