From e43e597f377e570e7b50fe55e2e00e8e3e267b61 Mon Sep 17 00:00:00 2001 From: Tynuk <43266276+Tynukua@users.noreply.github.com> Date: Wed, 8 Jan 2020 19:44:35 +0200 Subject: [PATCH] Update pool.py --- asyncpg/pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asyncpg/pool.py b/asyncpg/pool.py index 20a3234e..9cdafefa 100644 --- a/asyncpg/pool.py +++ b/asyncpg/pool.py @@ -566,7 +566,7 @@ async def fetchrow(self, query, *args, timeout=None): async with self.acquire() as con: return await con.fetchrow(query, *args, timeout=timeout) - def acquire(self, *, timeout=None): + def acquire(self, *, timeout=None) -> connection.Connection: """Acquire a database connection from the pool. :param float timeout: A timeout for acquiring a Connection.