Skip to content

Commit 0e996d3

Browse files
committed
Ignore linting error
1 parent 2b67c78 commit 0e996d3

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
@@ -426,7 +426,7 @@ def from_vector(
426426
)
427427
dtype = vector.dtype
428428
padding = vector.padding
429-
vector = vector.data
429+
vector = vector.data # type: ignore
430430

431431
padding = 0 if padding is None else padding
432432
if dtype == BinaryVectorDtype.INT8: # pack ints in [-128, 127] as signed int8
@@ -443,7 +443,7 @@ def from_vector(
443443
raise NotImplementedError("%s not yet supported" % dtype)
444444

445445
metadata = struct.pack("<sB", dtype.value, padding)
446-
data = struct.pack(f"<{len(vector)}{format_str}", *vector)
446+
data = struct.pack(f"<{len(vector)}{format_str}", *vector) # type: ignore
447447
return cls(metadata + data, subtype=VECTOR_SUBTYPE)
448448

449449
def as_vector(self) -> BinaryVector:

0 commit comments

Comments
 (0)