Skip to content

Commit

Permalink
fix the str function of the extra list
Browse files Browse the repository at this point in the history
Signed-off-by: SimFG <[email protected]>
  • Loading branch information
SimFG committed May 17, 2024
1 parent 59154d7 commit 500246c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymilvus/client/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ def __init__(self, *args, extra: Optional[Dict] = None, **kwargs) -> None:

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

__repr__ = __str__

Expand Down

0 comments on commit 500246c

Please sign in to comment.