MCPcopy Index your code
hub / github.com/modelscope/modelscope / __init__

Method __init__

modelscope/hub/commit_scheduler.py:316–320  ·  view source on GitHub ↗
(self, file_path: Union[str, Path], size_limit: int)

Source from the content-addressed store, hash-verified

314 """A file-like object that reads only the first part of a file."""
315
316 def __init__(self, file_path: Union[str, Path], size_limit: int) -> None:
317 self._file_path = Path(file_path)
318 self._file = None
319 self._size_limit = size_limit
320 self.open()
321
322 def open(self) -> None:
323 """Open the file and initialize size limit."""

Callers

nothing calls this directly

Calls 1

openMethod · 0.95

Tested by

no test coverage detected