We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8199493 commit 093a6dcCopy full SHA for 093a6dc
bson/binary.py
@@ -256,6 +256,9 @@ def __eq__(self, other: Any) -> bool:
256
self.dtype == other.dtype and self.padding == other.padding and self.data == other.data
257
)
258
259
+ def __len__(self) -> int:
260
+ return len(self.data)
261
+
262
263
class Binary(bytes):
264
"""Representation of BSON binary data.
0 commit comments