Skip to content

Commit 3499836

Browse files
committed
Fixing typing for FCALL commands to match PEP 484
1 parent dd0c492 commit 3499836

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

redis/commands/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Sequence,
1919
Set,
2020
Tuple,
21-
Union,
21+
Union, Any,
2222
)
2323

2424
from redis.exceptions import ConnectionError, DataError, NoScriptError, RedisError
@@ -6397,12 +6397,12 @@ def function_list(
63976397
return self.execute_command("FUNCTION LIST", *args)
63986398

63996399
def _fcall(
6400-
self, command: str, function, numkeys: int, *keys_and_args: Optional[List]
6400+
self, command: str, function, numkeys: int, *keys_and_args: Any
64016401
) -> Union[Awaitable[str], str]:
64026402
return self.execute_command(command, function, numkeys, *keys_and_args)
64036403

64046404
def fcall(
6405-
self, function, numkeys: int, *keys_and_args: Optional[List]
6405+
self, function, numkeys: int, *keys_and_args: Any
64066406
) -> Union[Awaitable[str], str]:
64076407
"""
64086408
Invoke a function.
@@ -6412,7 +6412,7 @@ def fcall(
64126412
return self._fcall("FCALL", function, numkeys, *keys_and_args)
64136413

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

0 commit comments

Comments
 (0)