MCPcopy Create free account
hub / github.com/apple/ml-pointersect / __len__

Method __len__

cdslib/core/data/index_reader.py:66–68  ·  view source on GitHub ↗

Returns the number of files in the index file.

(self)

Source from the content-addressed store, hash-verified

64 )
65
66 def __len__(self):
67 """Returns the number of files in the index file."""
68 return len(self.filenames)
69
70 def __getitem__(self, i: int) -> T.Any:
71 """Returns the content of the i-th line in the index file."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected