Skip to content

Commit 72fc947

Browse files
committed
Updated style [skip ci]
1 parent 1780883 commit 72fc947

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pgvector/halfvec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def to_binary(self) -> bytes:
5757
else:
5858
value = array.array('H', self._value)
5959
value.byteswap()
60-
return struct.pack(f'>HH', len(value), 0) + memoryview(value)
60+
return struct.pack('>HH', len(value), 0) + memoryview(value)
6161

6262
@classmethod
6363
def from_text(cls, value: str) -> HalfVector:

pgvector/vector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def to_binary(self) -> bytes:
5555
else:
5656
value = array.array('f', self._value)
5757
value.byteswap()
58-
return struct.pack(f'>HH', len(value), 0) + memoryview(value)
58+
return struct.pack('>HH', len(value), 0) + memoryview(value)
5959

6060
@classmethod
6161
def from_text(cls, value: str) -> Vector:

0 commit comments

Comments
 (0)