Skip to content

Commit 2ff7534

Browse files
author
Mikhail Koviazin
committed
Revert "update the return type of scan family"
This reverts commit 9adb262. Signed-off-by: Mikhail Koviazin <[email protected]>
1 parent f4097b3 commit 2ff7534

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

valkey/commands/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2995,7 +2995,7 @@ def scan(
29952995
count: Union[int, None] = None,
29962996
_type: Union[str, None] = None,
29972997
**kwargs,
2998-
) -> Tuple[int, List[bytes]]:
2998+
) -> ResponseT:
29992999
"""
30003000
Incrementally return lists of key names. Also return a cursor
30013001
indicating the scan position.
@@ -3055,7 +3055,7 @@ def sscan(
30553055
cursor: int = 0,
30563056
match: Union[PatternT, None] = None,
30573057
count: Union[int, None] = None,
3058-
) -> Tuple[int, List[bytes]]:
3058+
) -> ResponseT:
30593059
"""
30603060
Incrementally return lists of elements in a set. Also return a cursor
30613061
indicating the scan position.
@@ -3099,7 +3099,7 @@ def hscan(
30993099
match: Union[PatternT, None] = None,
31003100
count: Union[int, None] = None,
31013101
no_values: Union[bool, None] = None,
3102-
) -> Tuple[int, Dict[bytes, bytes]]:
3102+
) -> ResponseT:
31033103
"""
31043104
Incrementally return key/value slices in a hash. Also return a cursor
31053105
indicating the scan position.
@@ -3155,7 +3155,7 @@ def zscan(
31553155
match: Union[PatternT, None] = None,
31563156
count: Union[int, None] = None,
31573157
score_cast_func: Union[type, Callable] = float,
3158-
) -> Tuple[int, List[Tuple[bytes, float]]]:
3158+
) -> ResponseT:
31593159
"""
31603160
Incrementally return lists of elements in a sorted set. Also return a
31613161
cursor indicating the scan position.

0 commit comments

Comments
 (0)