Skip to content

Commit

Permalink
Revert "update the return type of scan family"
Browse files Browse the repository at this point in the history
This reverts commit 9adb262.

Signed-off-by: Mikhail Koviazin <[email protected]>
  • Loading branch information
mkmkme committed Dec 19, 2024
1 parent f4097b3 commit 2ff7534
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions valkey/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 2ff7534

Please sign in to comment.