Skip to content

Commit

Permalink
feat: document set rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-hoenicke committed Dec 28, 2020
1 parent 751fd15 commit f09fa5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jina/types/sets/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ def __getitem__(self, item):
raise IndexError(f'do not support this index {item}')

def __add__(self, other: 'DocumentSet'):
sum = DocumentSet([])
v = DocumentSet([])
for doc in self:
sum.add(doc)
v.add(doc)
for doc in other:
sum.add(doc)
return sum
v.add(doc)
return v

def __iadd__(self, other: 'DocumentSet'):
for doc in other:
Expand Down

0 comments on commit f09fa5f

Please sign in to comment.