From 2ff7534c420f7030d63f41f3cefacec2d5bb2ff6 Mon Sep 17 00:00:00 2001 From: Mikhail Koviazin Date: Thu, 19 Dec 2024 11:41:04 +0100 Subject: [PATCH] Revert "update the return type of scan family" This reverts commit 9adb262d53fd2a751f28240271575e434877d4d6. Signed-off-by: Mikhail Koviazin --- 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 9fa9ac2b..4da4257e 100644 --- a/valkey/commands/core.py +++ b/valkey/commands/core.py @@ -2995,7 +2995,7 @@ def scan( count: Union[int, None] = None, _type: Union[str, None] = None, **kwargs, - ) -> Tuple[int, List[bytes]]: + ) -> ResponseT: """ Incrementally return lists of key names. Also return a cursor indicating the scan position. @@ -3055,7 +3055,7 @@ def sscan( cursor: int = 0, match: Union[PatternT, None] = None, count: Union[int, None] = None, - ) -> Tuple[int, List[bytes]]: + ) -> ResponseT: """ Incrementally return lists of elements in a set. Also return a cursor indicating the scan position. @@ -3099,7 +3099,7 @@ def hscan( match: Union[PatternT, None] = None, count: Union[int, None] = None, no_values: Union[bool, None] = None, - ) -> Tuple[int, Dict[bytes, bytes]]: + ) -> ResponseT: """ Incrementally return key/value slices in a hash. Also return a cursor indicating the scan position. @@ -3155,7 +3155,7 @@ def zscan( match: Union[PatternT, None] = None, count: Union[int, None] = None, score_cast_func: Union[type, Callable] = float, - ) -> Tuple[int, List[Tuple[bytes, float]]]: + ) -> ResponseT: """ Incrementally return lists of elements in a sorted set. Also return a cursor indicating the scan position.