Skip to content

Commit

Permalink
add property to ExtraList class for access data directly
Browse files Browse the repository at this point in the history
Signed-off-by: namch <[email protected]>
  • Loading branch information
namch committed Nov 22, 2024
1 parent 31cde42 commit 965bba6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pymilvus/client/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,11 @@ def __str__(self) -> str:
return f"data: {list(map(str, self[:10]))} {'...' if len(self) > 10 else ''}, extra_info: {self.extra}"
return f"data: {list(map(str, self[:10]))} {'...' if len(self) > 10 else ''}"

@property
def data(self):
"""Return the list data as is."""
return list(self)

__repr__ = __str__


Expand Down

0 comments on commit 965bba6

Please sign in to comment.