Skip to content

Commit 3250827

Browse files
committed
x
1 parent 396282f commit 3250827

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

langchain_postgres/v2/engine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async def _run_as_async(self, coro: Awaitable[T]) -> T:
119119
return await coro
120120
# Otherwise, run in the background thread
121121
return await asyncio.wrap_future(
122-
asyncio.run_coroutine_threadsafe(coro, self._loop)
122+
asyncio.run_coroutine_threadsafe(coro, self._loop) # type: ignore[arg-type]
123123
)
124124

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

133133
async def close(self) -> None:
134134
"""Dispose of connection pool"""

0 commit comments

Comments
 (0)