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

Method __exit__

src/websockets/sync/server.py:307–313  ·  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

305 return self
306
307 def __exit__(
308 self,
309 exc_type: type[BaseException] | None,
310 exc_value: BaseException | None,
311 traceback: TracebackType | None,
312 ) -> None:
313 self.shutdown()
314
315
316def __getattr__(name: str) -> Any:

Callers

nothing calls this directly

Calls 1

shutdownMethod · 0.95

Tested by

no test coverage detected