Skip to content

Commit 8b21176

Browse files
committed
Fixes typing error
1 parent 70f6e43 commit 8b21176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bson/binary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def from_vector(
462462
raise ValueError(f"{padding=}. It must be in [0,1, ..7].")
463463
if padding and not vector:
464464
raise ValueError("Empty vector with non-zero padding.")
465-
if padding and not (vector[-1] & ((1 << padding) - 1)) == 0:
465+
if padding and not (vector[-1] & ((1 << padding) - 1)) == 0: # type: ignore
466466
raise ValueError(
467467
"If padding p is provided, all bits in the final byte lower than p must be 0."
468468
)

0 commit comments

Comments
 (0)