Skip to content

Commit 5c5bdc4

Browse files
authored
Fix type hinting of zrange and zrangestore (#3872)
1 parent 793af91 commit 5c5bdc4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

redis/commands/core.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4699,8 +4699,8 @@ def _zrange(
46994699
command,
47004700
dest: Union[KeyT, None],
47014701
name: KeyT,
4702-
start: int,
4703-
end: int,
4702+
start: EncodableT,
4703+
end: EncodableT,
47044704
desc: bool = False,
47054705
byscore: bool = False,
47064706
bylex: bool = False,
@@ -4738,8 +4738,8 @@ def _zrange(
47384738
def zrange(
47394739
self,
47404740
name: KeyT,
4741-
start: int,
4742-
end: int,
4741+
start: EncodableT,
4742+
end: EncodableT,
47434743
desc: bool = False,
47444744
withscores: bool = False,
47454745
score_cast_func: Union[type, Callable] = float,
@@ -4828,8 +4828,8 @@ def zrangestore(
48284828
self,
48294829
dest: KeyT,
48304830
name: KeyT,
4831-
start: int,
4832-
end: int,
4831+
start: EncodableT,
4832+
end: EncodableT,
48334833
byscore: bool = False,
48344834
bylex: bool = False,
48354835
desc: bool = False,

0 commit comments

Comments
 (0)