From 965bba6e84d6288ef1ffdb7a9cfec59c564e593e Mon Sep 17 00:00:00 2001 From: namch Date: Fri, 22 Nov 2024 12:33:20 +0700 Subject: [PATCH] add property to ExtraList class for access data directly Signed-off-by: namch --- pymilvus/client/types.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pymilvus/client/types.py b/pymilvus/client/types.py index e3d2d53e3..d3e8b29a8 100644 --- a/pymilvus/client/types.py +++ b/pymilvus/client/types.py @@ -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__