From 78d32fab2362ba42a5c5dfdef5052a72f77dde71 Mon Sep 17 00:00:00 2001 From: Alexander Tarasov Date: Fri, 18 Jul 2025 07:38:07 +0300 Subject: [PATCH] remove __del__() from AsyncDiskClient --- yndx_disk/clients/async_client.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/yndx_disk/clients/async_client.py b/yndx_disk/clients/async_client.py index 177ec86..cf2dc1f 100644 --- a/yndx_disk/clients/async_client.py +++ b/yndx_disk/clients/async_client.py @@ -61,7 +61,7 @@ class AsyncDiskClient: Initialize an instance of the AsyncDiskClient class. Parameters: - - token (str): The authentication token for the server. + - token (str): The authentication token for the server. - auto_update_info (bool, optional): Whether to automatically update the client's information. Defaults to True. Returns: @@ -84,9 +84,6 @@ class AsyncDiskClient: loop = asyncio.new_event_loop() loop.run_until_complete(self.session.close()) - def __del__(self) -> None: - self._cleanup() - async def _wait_for_operation_to_finish(self, operation_id: str) -> bool: """ Wait for an operation to finish.