Skip to content

Commit 577b4ac

Browse files
authored
Fixing typing for FCALL commands to match PEP 484 (#3537)
* Fixing typing for FCALL commands to match PEP 484 * Codestyle fixes * Fixes issue #3536
1 parent dd0c492 commit 577b4ac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

redis/commands/core.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import warnings
66
from typing import (
77
TYPE_CHECKING,
8+
Any,
89
AsyncIterator,
910
Awaitable,
1011
Callable,
@@ -6397,12 +6398,12 @@ def function_list(
63976398
return self.execute_command("FUNCTION LIST", *args)
63986399

63996400
def _fcall(
6400-
self, command: str, function, numkeys: int, *keys_and_args: Optional[List]
6401+
self, command: str, function, numkeys: int, *keys_and_args: Any
64016402
) -> Union[Awaitable[str], str]:
64026403
return self.execute_command(command, function, numkeys, *keys_and_args)
64036404

64046405
def fcall(
6405-
self, function, numkeys: int, *keys_and_args: Optional[List]
6406+
self, function, numkeys: int, *keys_and_args: Any
64066407
) -> Union[Awaitable[str], str]:
64076408
"""
64086409
Invoke a function.
@@ -6412,7 +6413,7 @@ def fcall(
64126413
return self._fcall("FCALL", function, numkeys, *keys_and_args)
64136414

64146415
def fcall_ro(
6415-
self, function, numkeys: int, *keys_and_args: Optional[List]
6416+
self, function, numkeys: int, *keys_and_args: Any
64166417
) -> Union[Awaitable[str], str]:
64176418
"""
64186419
This is a read-only variant of the FCALL command that cannot

0 commit comments

Comments
 (0)