Skip to content

Commit

Permalink
feat:topk basic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Jan 30, 2024
1 parent ccaedcf commit 9756e80
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fakeredis/stack/_topk_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def add(self, item: bytes, incr: int) -> Optional[bytes]:
expelled = heapq.heapreplace(self.min_heap, (max_count, item))
return expelled[1]


def count(self, item: bytes) -> int:
ind = self._index(item)
if ind > 0:
Expand Down

0 comments on commit 9756e80

Please sign in to comment.