Skip to content

Commit

Permalink
chore: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kalombos committed Jun 22, 2024
1 parent f7d977d commit b20be4c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions peewee_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@
aiomysql = None
pymysql = None

try:
asyncio_current_task = asyncio.current_task
except AttributeError:
asyncio_current_task = asyncio.Task.current_task

__version__ = version('peewee-async')


Expand Down Expand Up @@ -701,7 +696,7 @@ class AioModelDelete(peewee.ModelDelete, AioQueryMixin):
async def fetch_results(self, cursor):
if self._returning:
return await self.make_async_query_wrapper(cursor)
return cursor.rowcount
return cursor. ount


class AioModelUpdate(peewee.ModelUpdate, AioQueryMixin):
Expand Down

0 comments on commit b20be4c

Please sign in to comment.