Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions chromadb/execution/expression/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,8 @@ def __add__(self, other: Union["Rank", float, int]) -> "Sum":

def __radd__(self, other: Union[float, int]) -> "Sum":
"""Right addition: value + rank"""
if isinstance(other, (int, float)):
return Sum([Val(other), self])
return Val(other) + self

def __sub__(self, other: Union["Rank", float, int]) -> "Sub":
Expand Down