Skip to content

Commit 7882f75

Browse files
committed
Typing
1 parent 47fc92c commit 7882f75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bson/binary.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ def from_vector(
487487
vector = vector.data # type: ignore
488488

489489
padding = 0 if padding is None else padding
490+
assert isinstance(dtype, BinaryVectorDtype)
490491
metadata = struct.pack("<sB", dtype.value, padding)
491492

492493
if isinstance(vector, np.ndarray):

0 commit comments

Comments
 (0)