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

Method close

src/click/utils.py:179–182  ·  view source on GitHub ↗

Closes the underlying file, no matter what.

(self)

Source from the content-addressed store, hash-verified

177 return rv
178
179 def close(self) -> None:
180 """Closes the underlying file, no matter what."""
181 if self._f is not None:
182 self._f.close()
183
184 def close_intelligently(self) -> None:
185 """This function only closes the file if it was opened by the lazy

Callers 2

close_intelligentlyMethod · 0.95
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected