(self, name: str)
| 349 | return self._size_limit |
| 350 | |
| 351 | def __getattribute__(self, name: str): |
| 352 | if name.startswith('_') or name in { |
| 353 | 'read', 'tell', 'seek', 'close', 'open' |
| 354 | }: # only 5 public methods supported |
| 355 | return super().__getattribute__(name) |
| 356 | raise NotImplementedError(f"PartialFileIO does not support '{name}'.") |
| 357 | |
| 358 | def tell(self) -> int: |
| 359 | return self._file.tell() |
no outgoing calls
no test coverage detected