mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-26 09:14:31 +03:00
Add missing return self on action/download ctx managers
This commit is contained in:
parent
ae1c1b3912
commit
944fb10733
|
@ -61,6 +61,7 @@ class _ChatAction:
|
|||
|
||||
self._running = True
|
||||
self._task = self._client.loop.create_task(self._update())
|
||||
return self
|
||||
|
||||
async def __aexit__(self, *args):
|
||||
self._running = False
|
||||
|
|
|
@ -92,7 +92,7 @@ class _DirectDownloadIter(RequestIter):
|
|||
self._sender = None
|
||||
|
||||
async def __aenter__(self):
|
||||
pass
|
||||
return self
|
||||
|
||||
async def __aexit__(self, *args):
|
||||
await self.close()
|
||||
|
|
Loading…
Reference in New Issue
Block a user