@@ -2987,7 +2987,7 @@ def scan(
29872987 count : Union [int , None ] = None ,
29882988 _type : Union [str , None ] = None ,
29892989 ** kwargs ,
2990- ) -> ResponseT :
2990+ ) -> Tuple [ int , List [ bytes ]] :
29912991 """
29922992 Incrementally return lists of key names. Also return a cursor
29932993 indicating the scan position.
@@ -3047,7 +3047,7 @@ def sscan(
30473047 cursor : int = 0 ,
30483048 match : Union [PatternT , None ] = None ,
30493049 count : Union [int , None ] = None ,
3050- ) -> ResponseT :
3050+ ) -> Tuple [ int , List [ bytes ]] :
30513051 """
30523052 Incrementally return lists of elements in a set. Also return a cursor
30533053 indicating the scan position.
@@ -3091,7 +3091,7 @@ def hscan(
30913091 match : Union [PatternT , None ] = None ,
30923092 count : Union [int , None ] = None ,
30933093 no_values : Union [bool , None ] = None ,
3094- ) -> ResponseT :
3094+ ) -> Tuple [ int , Dict [ bytes , bytes ]] :
30953095 """
30963096 Incrementally return key/value slices in a hash. Also return a cursor
30973097 indicating the scan position.
@@ -3147,7 +3147,7 @@ def zscan(
31473147 match : Union [PatternT , None ] = None ,
31483148 count : Union [int , None ] = None ,
31493149 score_cast_func : Union [type , Callable ] = float ,
3150- ) -> ResponseT :
3150+ ) -> Tuple [ int , List [ Tuple [ bytes , float ]]] :
31513151 """
31523152 Incrementally return lists of elements in a sorted set. Also return a
31533153 cursor indicating the scan position.
0 commit comments