Skip to content

Commit 4351db0

Browse files
authored
[2.4] fix the str function of the extra list (#2098)
/kind improvement issue: milvus-io/milvus#30436 link pr: #2092 Signed-off-by: SimFG <[email protected]>
1 parent 7520087 commit 4351db0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymilvus/client/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ def __init__(self, *args, extra: Optional[Dict] = None, **kwargs) -> None:
933933

934934
def __str__(self) -> str:
935935
"""Only print at most 10 query results"""
936-
return f"data: {list(map(str, self[:10]))} {'...' if len(self) else ''}, extra_info: {self.extra}"
936+
return f"data: {list(map(str, self[:10]))} {'...' if len(self) > 10 else ''}, extra_info: {self.extra}"
937937

938938
__repr__ = __str__
939939

0 commit comments

Comments
 (0)