MCPcopy
hub / github.com/pallets/click / __exit__

Method __exit__

src/click/utils.py:194–200  ·  view source on GitHub ↗
(
        self,
        exc_type: type[BaseException] | None,
        exc_value: BaseException | None,
        tb: TracebackType | None,
    )

Source from the content-addressed store, hash-verified

192 return self
193
194 def __exit__(
195 self,
196 exc_type: type[BaseException] | None,
197 exc_value: BaseException | None,
198 tb: TracebackType | None,
199 ) -> None:
200 self.close_intelligently()
201
202 def __iter__(self) -> cabc.Iterator[t.AnyStr]:
203 self.open()

Callers

nothing calls this directly

Calls 1

close_intelligentlyMethod · 0.95

Tested by

no test coverage detected