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 0b0a50b commit 10da245Copy full SHA for 10da245
bson/binary.py
@@ -481,7 +481,7 @@ def from_vector(
481
padding = 0 if padding is None else padding
482
if not isinstance(dtype, BinaryVectorDtype):
483
raise TypeError(
484
- "dtype must be a bson.BinaryVectorDtype, such as BinaryVectorDtype.FLOAT32"
+ "dtype must be a bson.BinaryVectorDtype of BinaryVectorDType.INT8, PACKED_BIT, FLOAT32"
485
)
486
metadata = struct.pack("<sB", dtype.value, padding)
487
0 commit comments