MCPcopy Create free account
hub / github.com/modelscope/modelscope / close

Method close

modelscope/hub/commit_scheduler.py:335–339  ·  view source on GitHub ↗

Close the file if it's open.

(self)

Source from the content-addressed store, hash-verified

333 raise
334
335 def close(self) -> None:
336 """Close the file if it's open."""
337 if self._file is not None:
338 self._file.close()
339 self._file = None
340
341 def __del__(self) -> None:
342 self.close()

Calls

no outgoing calls