Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type hint of arbitrary argument lists #2908

Merged
merged 2 commits into from
Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions redis/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down