src/transformers/commands/lfs.py/FileSlice/__len__
class FileSlice:    def __len__(self):
        total_length = os.fstat(self.f.fileno()).st_size
        return min(self.read_limit, total_length - self.seek_from)