mirror of
https://github.com/arabianq/yndx-disk.git
synced 2026-04-27 22:21:23 +00:00
remove __del__() from AsyncDiskClient
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user