Skip to content

Commit 791b57e

Browse files
authored
Merge pull request jamesls#320 from jamesls/fix-rpop-corner
Fix an RPOP corner case that only worked for LPOP
2 parents bba838c + 03880a9 commit 791b57e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fakeredis/_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1866,7 +1866,7 @@ def ltrim(self, key, start, stop):
18661866
key.update(new_value)
18671867
return OK
18681868

1869-
@command((Key(list),), (Int(),))
1869+
@command((Key(),), (Int(),))
18701870
def rpop(self, key, *args):
18711871
return self._list_pop(lambda count: slice(None, -count - 1, -1), key, *args)
18721872

0 commit comments

Comments
 (0)