@@ -904,7 +904,7 @@ class SortedSetCommands(Generic[_StrType]):
904
904
end : int ,
905
905
desc : bool ,
906
906
withscores : Literal [True ],
907
- score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ] = ... ,
907
+ score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ],
908
908
byscore : bool = ...,
909
909
bylex : bool = ...,
910
910
offset : int | None = ...,
@@ -916,16 +916,43 @@ class SortedSetCommands(Generic[_StrType]):
916
916
name : _Key ,
917
917
start : int ,
918
918
end : int ,
919
- desc : bool = ...,
919
+ desc : bool ,
920
+ withscores : Literal [True ],
921
+ score_cast_func : Callable [[_StrType ], float ] = ...,
922
+ byscore : bool = ...,
923
+ bylex : bool = ...,
924
+ offset : int | None = ...,
925
+ num : int | None = ...,
926
+ ) -> list [tuple [_StrType , float ]]: ...
927
+ @overload
928
+ def zrange (
929
+ self ,
930
+ name : _Key ,
931
+ start : int ,
932
+ end : int ,
920
933
* ,
921
934
withscores : Literal [True ],
922
- score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ] = ... ,
935
+ score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ],
923
936
byscore : bool = ...,
924
937
bylex : bool = ...,
925
938
offset : int | None = ...,
926
939
num : int | None = ...,
927
940
) -> list [tuple [_StrType , _ScoreCastFuncReturn ]]: ...
928
941
@overload
942
+ def zrange (
943
+ self ,
944
+ name : _Key ,
945
+ start : int ,
946
+ end : int ,
947
+ * ,
948
+ withscores : Literal [True ],
949
+ score_cast_func : Callable [[_StrType ], float ] = ...,
950
+ byscore : bool = ...,
951
+ bylex : bool = ...,
952
+ offset : int | None = ...,
953
+ num : int | None = ...,
954
+ ) -> list [tuple [_StrType , float ]]: ...
955
+ @overload
929
956
def zrange (
930
957
self ,
931
958
name : _Key ,
@@ -946,9 +973,11 @@ class SortedSetCommands(Generic[_StrType]):
946
973
start : int ,
947
974
end : int ,
948
975
withscores : Literal [True ],
949
- score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ] = ... ,
976
+ score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ],
950
977
) -> list [tuple [_StrType , _ScoreCastFuncReturn ]]: ...
951
978
@overload
979
+ def zrevrange (self , name : _Key , start : int , end : int , withscores : Literal [True ]) -> list [tuple [_StrType , float ]]: ...
980
+ @overload
952
981
def zrevrange (
953
982
self , name : _Key , start : int , end : int , withscores : bool = ..., score_cast_func : Callable [[Any ], Any ] = ...
954
983
) -> list [_StrType ]: ...
@@ -980,9 +1009,13 @@ class SortedSetCommands(Generic[_StrType]):
980
1009
num : int | None = ...,
981
1010
* ,
982
1011
withscores : Literal [True ],
983
- score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ] = ... ,
1012
+ score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ],
984
1013
) -> list [tuple [_StrType , _ScoreCastFuncReturn ]]: ...
985
1014
@overload
1015
+ def zrangebyscore (
1016
+ self , name : _Key , min : _Value , max : _Value , start : int | None = ..., num : int | None = ..., * , withscores : Literal [True ]
1017
+ ) -> list [tuple [_StrType , float ]]: ...
1018
+ @overload
986
1019
def zrangebyscore (
987
1020
self ,
988
1021
name : _Key ,
@@ -1003,9 +1036,13 @@ class SortedSetCommands(Generic[_StrType]):
1003
1036
num : int | None = ...,
1004
1037
* ,
1005
1038
withscores : Literal [True ],
1006
- score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ] = ... ,
1039
+ score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ],
1007
1040
) -> list [tuple [_StrType , _ScoreCastFuncReturn ]]: ...
1008
1041
@overload
1042
+ def zrevrangebyscore (
1043
+ self , name : _Key , max : _Value , min : _Value , start : int | None = ..., num : int | None = ..., * , withscores : Literal [True ]
1044
+ ) -> list [tuple [_StrType , float ]]: ...
1045
+ @overload
1009
1046
def zrevrangebyscore (
1010
1047
self ,
1011
1048
name : _Key ,
@@ -1068,13 +1105,27 @@ class AsyncSortedSetCommands(Generic[_StrType]):
1068
1105
end : int ,
1069
1106
desc : bool ,
1070
1107
withscores : Literal [True ],
1071
- score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ] = ... ,
1108
+ score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ],
1072
1109
byscore : bool = ...,
1073
1110
bylex : bool = ...,
1074
1111
offset : int | None = ...,
1075
1112
num : int | None = ...,
1076
1113
) -> list [tuple [_StrType , _ScoreCastFuncReturn ]]: ...
1077
1114
@overload
1115
+ async def zrange (
1116
+ self ,
1117
+ name : _Key ,
1118
+ start : int ,
1119
+ end : int ,
1120
+ desc : bool ,
1121
+ withscores : Literal [True ],
1122
+ score_cast_func : Callable [[_StrType ], float ] = ...,
1123
+ byscore : bool = ...,
1124
+ bylex : bool = ...,
1125
+ offset : int | None = ...,
1126
+ num : int | None = ...,
1127
+ ) -> list [tuple [_StrType , float ]]: ...
1128
+ @overload
1078
1129
async def zrange (
1079
1130
self ,
1080
1131
name : _Key ,
@@ -1083,13 +1134,28 @@ class AsyncSortedSetCommands(Generic[_StrType]):
1083
1134
desc : bool = ...,
1084
1135
* ,
1085
1136
withscores : Literal [True ],
1086
- score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ] = ... ,
1137
+ score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ],
1087
1138
byscore : bool = ...,
1088
1139
bylex : bool = ...,
1089
1140
offset : int | None = ...,
1090
1141
num : int | None = ...,
1091
1142
) -> list [tuple [_StrType , _ScoreCastFuncReturn ]]: ...
1092
1143
@overload
1144
+ async def zrange (
1145
+ self ,
1146
+ name : _Key ,
1147
+ start : int ,
1148
+ end : int ,
1149
+ desc : bool = ...,
1150
+ * ,
1151
+ withscores : Literal [True ],
1152
+ score_cast_func : Callable [[_StrType ], float ] = ...,
1153
+ byscore : bool = ...,
1154
+ bylex : bool = ...,
1155
+ offset : int | None = ...,
1156
+ num : int | None = ...,
1157
+ ) -> list [tuple [_StrType , float ]]: ...
1158
+ @overload
1093
1159
async def zrange (
1094
1160
self ,
1095
1161
name : _Key ,
@@ -1110,9 +1176,11 @@ class AsyncSortedSetCommands(Generic[_StrType]):
1110
1176
start : int ,
1111
1177
end : int ,
1112
1178
withscores : Literal [True ],
1113
- score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ] = ... ,
1179
+ score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ],
1114
1180
) -> list [tuple [_StrType , _ScoreCastFuncReturn ]]: ...
1115
1181
@overload
1182
+ async def zrevrange (self , name : _Key , start : int , end : int , withscores : Literal [True ]) -> list [tuple [_StrType , float ]]: ...
1183
+ @overload
1116
1184
async def zrevrange (
1117
1185
self , name : _Key , start : int , end : int , withscores : bool = ..., score_cast_func : Callable [[Any ], Any ] = ...
1118
1186
) -> list [_StrType ]: ...
@@ -1144,9 +1212,13 @@ class AsyncSortedSetCommands(Generic[_StrType]):
1144
1212
num : int | None = ...,
1145
1213
* ,
1146
1214
withscores : Literal [True ],
1147
- score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ] = ... ,
1215
+ score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ],
1148
1216
) -> list [tuple [_StrType , _ScoreCastFuncReturn ]]: ...
1149
1217
@overload
1218
+ async def zrangebyscore (
1219
+ self , name : _Key , min : _Value , max : _Value , start : int | None = ..., num : int | None = ..., * , withscores : Literal [True ]
1220
+ ) -> list [tuple [_StrType , float ]]: ...
1221
+ @overload
1150
1222
async def zrangebyscore (
1151
1223
self ,
1152
1224
name : _Key ,
@@ -1167,9 +1239,13 @@ class AsyncSortedSetCommands(Generic[_StrType]):
1167
1239
num : int | None = ...,
1168
1240
* ,
1169
1241
withscores : Literal [True ],
1170
- score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ] = ... ,
1242
+ score_cast_func : Callable [[_StrType ], _ScoreCastFuncReturn ],
1171
1243
) -> list [tuple [_StrType , _ScoreCastFuncReturn ]]: ...
1172
1244
@overload
1245
+ async def zrevrangebyscore (
1246
+ self , name : _Key , max : _Value , min : _Value , start : int | None = ..., num : int | None = ..., * , withscores : Literal [True ]
1247
+ ) -> list [tuple [_StrType , float ]]: ...
1248
+ @overload
1173
1249
async def zrevrangebyscore (
1174
1250
self ,
1175
1251
name : _Key ,
0 commit comments