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

Method __exit__

src/openai/_streaming.py:115–121  ·  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

113 return self
114
115 def __exit__(
116 self,
117 exc_type: type[BaseException] | None,
118 exc: BaseException | None,
119 exc_tb: TracebackType | None,
120 ) -> None:
121 self.close()
122
123 def close(self) -> None:
124 """

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected