Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(array): use extend in add improve docs #51

Merged
merged 2 commits into from
Jan 15, 2022
Merged

Conversation

hanxiao
Copy link
Member

@hanxiao hanxiao commented Jan 15, 2022

No description provided.

@codecov
Copy link

codecov bot commented Jan 15, 2022

Codecov Report

Merging #51 (fe3d323) into main (abb332b) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #51      +/-   ##
==========================================
- Coverage   82.76%   82.75%   -0.02%     
==========================================
  Files          70       70              
  Lines        3331     3329       -2     
==========================================
- Hits         2757     2755       -2     
  Misses        574      574              
Flag Coverage Δ
docarray 82.75% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
docarray/__init__.py 100.00% <100.00%> (ø)
docarray/array/document.py 86.86% <100.00%> (-0.12%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03fa120...fe3d323. Read the comment docs.

@github-actions
Copy link

📝 Docs are deployed on https://ft-refactor-add-array--jina-docs.netlify.app 🎉

@hanxiao hanxiao merged commit fca35a0 into main Jan 15, 2022
@hanxiao hanxiao deleted the refactor-add-array branch January 15, 2022 16:38
for doc in other:
v.append(doc)
v.extend(self)
v.extend(other)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not self.extend(other) and return self?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

__add__
a + b

not

__iadd__
a+=b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants