From 9adb262d53fd2a751f28240271575e434877d4d6 Mon Sep 17 00:00:00 2001 From: amirreza Date: Wed, 4 Dec 2024 05:36:07 +0330 Subject: [PATCH] update the return type of scan family Signed-off-by: amirreza --- valkey/commands/core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/valkey/commands/core.py b/valkey/commands/core.py index 90dfb3b8..d66bed7c 100644 --- a/valkey/commands/core.py +++ b/valkey/commands/core.py @@ -2987,7 +2987,7 @@ def scan( count: Union[int, None] = None, _type: Union[str, None] = None, **kwargs, - ) -> ResponseT: + ) -> Tuple[int, List[bytes]]: """ Incrementally return lists of key names. Also return a cursor indicating the scan position. @@ -3047,7 +3047,7 @@ def sscan( cursor: int = 0, match: Union[PatternT, None] = None, count: Union[int, None] = None, - ) -> ResponseT: + ) -> Tuple[int, List[bytes]]: """ Incrementally return lists of elements in a set. Also return a cursor indicating the scan position. @@ -3091,7 +3091,7 @@ def hscan( match: Union[PatternT, None] = None, count: Union[int, None] = None, no_values: Union[bool, None] = None, - ) -> ResponseT: + ) -> Tuple[int, Dict[bytes, bytes]]: """ Incrementally return key/value slices in a hash. Also return a cursor indicating the scan position. @@ -3147,7 +3147,7 @@ def zscan( match: Union[PatternT, None] = None, count: Union[int, None] = None, score_cast_func: Union[type, Callable] = float, - ) -> ResponseT: + ) -> Tuple[int, List[Tuple[bytes, float]]]: """ Incrementally return lists of elements in a sorted set. Also return a cursor indicating the scan position.