Skip to content

Commit 62865ba

Browse files
committed
Added versionchanged detail to from_vector.
1 parent 14db97b commit 62865ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bson/binary.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,9 @@ def from_vector(
443443
:param padding: For fractional bytes, number of bits to ignore at end of vector.
444444
:return: Binary packed data identified by dtype and padding.
445445
446+
.. versionchanged:: 4.14
447+
When padding is non-zero, ignored bits should be zero. Raise exception on encoding, warn on decoding.
448+
446449
.. versionadded:: 4.10
447450
"""
448451
if isinstance(vector, BinaryVector):

0 commit comments

Comments
 (0)