Skip to content

Commit

Permalink
change return types for asyncmy
Browse files Browse the repository at this point in the history
  • Loading branch information
collerek committed Jan 20, 2022
1 parent 5f054b2 commit 68ac70b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions databases/backends/asyncmy.py
Expand Up @@ -100,7 +100,7 @@ async def release(self) -> None:
await self._database._pool.release(self._connection)
self._connection = None

async def fetch_all(self, query: ClauseElement) -> typing.List[typing.Sequence]:
async def fetch_all(self, query: ClauseElement) -> typing.List[typing.Mapping]:
assert self._connection is not None, "Connection is not acquired"
query_str, args, context = self._compile(query)
async with self._connection.cursor() as cursor:
Expand All @@ -121,7 +121,7 @@ async def fetch_all(self, query: ClauseElement) -> typing.List[typing.Sequence]:
finally:
await cursor.close()

async def fetch_one(self, query: ClauseElement) -> typing.Optional[typing.Sequence]:
async def fetch_one(self, query: ClauseElement) -> typing.Optional[typing.Mapping]:
assert self._connection is not None, "Connection is not acquired"
query_str, args, context = self._compile(query)
async with self._connection.cursor() as cursor:
Expand Down

0 comments on commit 68ac70b

Please sign in to comment.