Skip to content

Commit 239ad25

Browse files
committed
Updated comments [skip ci]
1 parent b5987c0 commit 239ad25

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
@@ -88,7 +88,7 @@ def _to_db(cls, value: object) -> str | None:
8888
if value is None:
8989
return value
9090

91-
# fast path for high-level libraries
91+
# fewer allocations for lists
9292
if isinstance(value, list):
9393
return f'[{",".join([str(float(v)) for v in value])}]' # type: ignore
9494

pgvector/vector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def _to_db(cls, value: object) -> str | None:
8686
if value is None:
8787
return value
8888

89-
# fast path for high-level libraries
89+
# fewer allocations for lists
9090
if isinstance(value, list):
9191
return f'[{",".join([str(float(v)) for v in value])}]' # type: ignore
9292

0 commit comments

Comments
 (0)