Skip to content

Commit 8bd9482

Browse files
committed
Reverted BinaryVector repr to f-string following python convention
1 parent b83bee4 commit 8bd9482

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bson/binary.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,7 @@ def __init__(self, data: Sequence[float | int], dtype: BinaryVectorDtype, paddin
248248
self.padding = padding
249249

250250
def __repr__(self) -> str:
251-
return "BinaryVector(dtype={}, padding={}, data={})".format( # noqa: UP032
252-
self.dtype, self.padding, self.data
253-
)
251+
return f"BinaryVector(dtype={self.dtype}, padding={self.padding}, data={self.data})"
254252

255253

256254
class Binary(bytes):

0 commit comments

Comments
 (0)