Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
x
  • Loading branch information
eyurtsev committed Oct 17, 2025
commit 325082784c733a843059ac9680359ee0121e001c
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