MCPcopy
hub / github.com/anthropics/anthropic-sdk-python / __exit__

Method __exit__

src/anthropic/_base_client.py:1056–1062  ·  view source on GitHub ↗
(
        self,
        exc_type: type[BaseException] | None,
        exc: BaseException | None,
        exc_tb: TracebackType | None,
    )

Source from the content-addressed store, hash-verified

1054 return self
1055
1056 def __exit__(
1057 self,
1058 exc_type: type[BaseException] | None,
1059 exc: BaseException | None,
1060 exc_tb: TracebackType | None,
1061 ) -> None:
1062 self.close()
1063
1064 def _prepare_options(
1065 self,

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected