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 47fc92c commit 7882f75Copy full SHA for 7882f75
bson/binary.py
@@ -487,6 +487,7 @@ def from_vector(
487
vector = vector.data # type: ignore
488
489
padding = 0 if padding is None else padding
490
+ assert isinstance(dtype, BinaryVectorDtype)
491
metadata = struct.pack("<sB", dtype.value, padding)
492
493
if isinstance(vector, np.ndarray):
0 commit comments