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

Method __getattribute__

modelscope/hub/commit_scheduler.py:351–356  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

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()

Callers 3

dumpMethod · 0.80
merge_from_dictMethod · 0.80
__getattr__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected