MCPcopy Create free account
hub / github.com/python-websockets/websockets / __aexit__

Method __aexit__

src/websockets/asyncio/client.py:592–598  ·  view source on GitHub ↗
(
        self,
        exc_type: type[BaseException] | None,
        exc_value: BaseException | None,
        traceback: TracebackType | None,
    )

Source from the content-addressed store, hash-verified

590 return await self
591
592 async def __aexit__(
593 self,
594 exc_type: type[BaseException] | None,
595 exc_value: BaseException | None,
596 traceback: TracebackType | None,
597 ) -> None:
598 await self.connection.close()
599
600 # async for ... in connect(...):
601

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected