mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-06 06:33:10 +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._running = True
|
||||||
self._task = self._client.loop.create_task(self._update())
|
self._task = self._client.loop.create_task(self._update())
|
||||||
|
return self
|
||||||
|
|
||||||
async def __aexit__(self, *args):
|
async def __aexit__(self, *args):
|
||||||
self._running = False
|
self._running = False
|
||||||
|
|
|
@ -92,7 +92,7 @@ class _DirectDownloadIter(RequestIter):
|
||||||
self._sender = None
|
self._sender = None
|
||||||
|
|
||||||
async def __aenter__(self):
|
async def __aenter__(self):
|
||||||
pass
|
return self
|
||||||
|
|
||||||
async def __aexit__(self, *args):
|
async def __aexit__(self, *args):
|
||||||
await self.close()
|
await self.close()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user