Skip to content

Commit 1bf1705

Browse files
zxjlmvladvildanov
authored andcommitted
Fix type hint of arbitrary argument lists (#2908)
1 parent f6c3ca4 commit 1bf1705

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

redis/commands/core.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5260,12 +5260,12 @@ class ScriptCommands(CommandsProtocol):
52605260
"""
52615261

52625262
def _eval(
5263-
self, command: str, script: str, numkeys: int, *keys_and_args: list
5263+
self, command: str, script: str, numkeys: int, *keys_and_args: str
52645264
) -> Union[Awaitable[str], str]:
52655265
return self.execute_command(command, script, numkeys, *keys_and_args)
52665266

52675267
def eval(
5268-
self, script: str, numkeys: int, *keys_and_args: list
5268+
self, script: str, numkeys: int, *keys_and_args: str
52695269
) -> Union[Awaitable[str], str]:
52705270
"""
52715271
Execute the Lua ``script``, specifying the ``numkeys`` the script
@@ -5280,7 +5280,7 @@ def eval(
52805280
return self._eval("EVAL", script, numkeys, *keys_and_args)
52815281

52825282
def eval_ro(
5283-
self, script: str, numkeys: int, *keys_and_args: list
5283+
self, script: str, numkeys: int, *keys_and_args: str
52845284
) -> Union[Awaitable[str], str]:
52855285
"""
52865286
The read-only variant of the EVAL command
@@ -5299,7 +5299,7 @@ def _evalsha(
52995299
return self.execute_command(command, sha, numkeys, *keys_and_args)
53005300

53015301
def evalsha(
5302-
self, sha: str, numkeys: int, *keys_and_args: list
5302+
self, sha: str, numkeys: int, *keys_and_args: str
53035303
) -> Union[Awaitable[str], str]:
53045304
"""
53055305
Use the ``sha`` to execute a Lua script already registered via EVAL
@@ -5315,7 +5315,7 @@ def evalsha(
53155315
return self._evalsha("EVALSHA", sha, numkeys, *keys_and_args)
53165316

53175317
def evalsha_ro(
5318-
self, sha: str, numkeys: int, *keys_and_args: list
5318+
self, sha: str, numkeys: int, *keys_and_args: str
53195319
) -> Union[Awaitable[str], str]:
53205320
"""
53215321
The read-only variant of the EVALSHA command

0 commit comments

Comments
 (0)