Skip to content

Commit 2b67c78

Browse files
committed
Updated from_vector docstring
1 parent a8feb7c commit 2b67c78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bson/binary.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,14 +404,14 @@ def from_vector(
404404
dtype: Optional[BinaryVectorDtype] = None,
405405
padding: Optional[int] = None,
406406
) -> 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.
408408
409409
To interpret the representation of the numbers, a data type must be included.
410410
See :class:`~bson.binary.BinaryVectorDtype` for available types and descriptions.
411411
412412
The dtype and padding are prepended to the binary data's value.
413413
414-
:param vector: List of values
414+
:param vector: Either a List of values, or a :class:`~bson.binary.BinaryVector` dataclass.
415415
:param dtype: Data type of the values
416416
:param padding: For fractional bytes, number of bits to ignore at end of vector.
417417
:return: Binary packed data identified by dtype and padding.

0 commit comments

Comments
 (0)