MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / __exit__

Method __exit__

pre_commit/util.py:153–160  ·  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

151 self.r = None
152
153 def __exit__(
154 self,
155 exc_type: type[BaseException] | None,
156 exc_value: BaseException | None,
157 traceback: TracebackType | None,
158 ) -> None:
159 self.close_w()
160 self.close_r()
161
162 def cmd_output_p(
163 *cmd: str,

Callers

nothing calls this directly

Calls 2

close_wMethod · 0.95
close_rMethod · 0.95

Tested by

no test coverage detected