Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ close_w
Method
close_w
pre_commit/util.py:143–146 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
141
return
self
142
143
def
close_w(self) -> None:
144
if
self.w is not None:
145
os.close(self.w)
146
self.w = None
147
148
def
close_r(self) -> None:
149
assert self.r is not None
Callers
2
__exit__
Method · 0.95
cmd_output_p
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected