File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -404,14 +404,14 @@ def from_vector(
404
404
dtype : Optional [BinaryVectorDtype ] = None ,
405
405
padding : Optional [int ] = None ,
406
406
) -> Binary :
407
- """**(BETA)** Create a BSON :class:`~bson.binary.Binary` of Vector subtype from a list of Numbers .
407
+ """**(BETA)** Create a BSON :class:`~bson.binary.Binary` of Vector subtype.
408
408
409
409
To interpret the representation of the numbers, a data type must be included.
410
410
See :class:`~bson.binary.BinaryVectorDtype` for available types and descriptions.
411
411
412
412
The dtype and padding are prepended to the binary data's value.
413
413
414
- :param vector: List of values
414
+ :param vector: Either a List of values, or a :class:`~bson.binary.BinaryVector` dataclass.
415
415
:param dtype: Data type of the values
416
416
:param padding: For fractional bytes, number of bits to ignore at end of vector.
417
417
:return: Binary packed data identified by dtype and padding.
You can’t perform that action at this time.
0 commit comments