MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / __exit__

Method __exit__

src/opencode_ai/_response.py:613–620  ·  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

611 return self.__response
612
613 def __exit__(
614 self,
615 exc_type: type[BaseException] | None,
616 exc: BaseException | None,
617 exc_tb: TracebackType | None,
618 ) -> None:
619 if self.__response is not None:
620 self.__response.close()
621
622
623class AsyncResponseContextManager(Generic[_AsyncAPIResponseT]):

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected