Skip to content

Commit a99f7d8

Browse files
committed
add type hints
1 parent 28f12d2 commit a99f7d8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

redis/commands/core.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3881,10 +3881,16 @@ class ScriptCommands:
38813881
https://redis.com/ebook/part-3-next-steps/chapter-11-scripting-redis-with-lua/
38823882
"""
38833883

3884-
def _eval(self, command, script, numkeys, *keys_and_args):
3884+
def _eval(
3885+
self,
3886+
command: str,
3887+
script: str,
3888+
numkeys: int,
3889+
*keys_and_args: list
3890+
) -> str:
38853891
return self.execute_command(command, script, numkeys, *keys_and_args)
38863892

3887-
def eval(self, script, numkeys, *keys_and_args):
3893+
def eval(self, script: str, numkeys: int, *keys_and_args: list) -> str:
38883894
"""
38893895
Execute the Lua ``script``, specifying the ``numkeys`` the script
38903896
will touch and the key names and argument values in ``keys_and_args``.

0 commit comments

Comments
 (0)