Skip to content

Commit 519291c

Browse files
committed
Adds __repr__ to BinaryVector dataclass
1 parent c9a85ad commit 519291c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bson/binary.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ def __init__(self, data: Sequence[float | int], dtype: BinaryVectorDtype, paddin
247247
self.dtype = dtype
248248
self.padding = padding
249249

250+
def __repr__(self):
251+
return f"BinaryVector - {self.dtype=}, {self.dtype},{self.padding=}, {self.data=}"
252+
250253

251254
class Binary(bytes):
252255
"""Representation of BSON binary data.

0 commit comments

Comments
 (0)