From 4933aaf3727ca5ae36c84d9e861d1312eddc3bac Mon Sep 17 00:00:00 2001 From: Uche Ogbuji Date: Wed, 18 Sep 2024 15:52:56 -0600 Subject: [PATCH] Ruff fix --- pylib/embedding/pgvector.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylib/embedding/pgvector.py b/pylib/embedding/pgvector.py index 878f9c9..3b1625e 100644 --- a/pylib/embedding/pgvector.py +++ b/pylib/embedding/pgvector.py @@ -129,7 +129,8 @@ async def from_conn_string(cls, conn_string, embedding_model, table_name, and set that as a pool attribute on the created object as a user convenience. ''' # https://github.com/MagicStack/asyncpg/blob/0a322a2e4ca1c3c3cf6c2cf22b236a6da6c61680/asyncpg/pool.py#L339 - pool = await asyncpg.create_pool(conn_string, init=PGVectorHelper.init_pool, min_size=pool_min, max_size=pool_max) + pool = await asyncpg.create_pool(conn_string, init=PGVectorHelper.init_pool, + min_size=pool_min, max_size=pool_max) new_obj = cls(embedding_model, table_name, pool) return new_obj