Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions langchain_postgres/v2/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async def _run_as_async(self, coro: Awaitable[T]) -> T:
return await coro
# Otherwise, run in the background thread
return await asyncio.wrap_future(
asyncio.run_coroutine_threadsafe(coro, self._loop)
asyncio.run_coroutine_threadsafe(coro, self._loop) # type: ignore[arg-type]
)

def _run_as_sync(self, coro: Awaitable[T]) -> T:
Expand All @@ -128,7 +128,7 @@ def _run_as_sync(self, coro: Awaitable[T]) -> T:
raise Exception(
"Engine was initialized without a background loop and cannot call sync methods."
)
return asyncio.run_coroutine_threadsafe(coro, self._loop).result()
return asyncio.run_coroutine_threadsafe(coro, self._loop).result() # type: ignore[arg-type]

async def close(self) -> None:
"""Dispose of connection pool"""
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "langchain-postgres"
version = "0.0.15"
version = "0.0.16"
description = "An integration package connecting Postgres and LangChain"
authors = []
readme = "README.md"
Expand All @@ -9,7 +9,7 @@ requires-python = ">=3.9"
license = "MIT"
dependencies = [
"asyncpg>=0.30.0",
"langchain-core>=0.2.13,<0.4.0",
"langchain-core>=0.2.13,<2.0",
"pgvector>=0.2.5,<0.4",
"psycopg[binary]>=3,<4",
"psycopg-pool>=3.2.1,<4",
Expand Down
Loading