MCPcopy
hub / github.com/openai/openai-python / __del__

Method __del__

src/openai/_base_client.py:1464–1472  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1462
1463class AsyncHttpxClientWrapper(DefaultAsyncHttpxClient):
1464 def __del__(self) -> None:
1465 if self.is_closed:
1466 return
1467
1468 try:
1469 # TODO(someday): support non asyncio runtimes here
1470 asyncio.get_running_loop().create_task(self.aclose())
1471 except Exception:
1472 pass
1473
1474
1475class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):

Callers

nothing calls this directly

Calls 1

acloseMethod · 0.80

Tested by

no test coverage detected