Method
__init__
(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
Tested by
no test coverage detected