python/ray/data/impl/block_list.py
def size_bytes(self) -> int:
        """Returns the total size in bytes of the blocks, or -1 if not known."""
        size = 0
        has_size = False
        for m in self.get_metadata():
            if m.size_bytes is not None:
                has_size = True
                size += m.size_bytes
        if not has_size:
            return -1
        else:
            return size
Returns the total size in bytes of the blocks, or -1 if not known.
Returns the total size in bytes of the blocks, or -1 if not known.
Returns the total size in bytes of the blocks or - 1 if not known .
def size_bytes(self) -> int:
        size = 0
        has_size = False
        for m in self.get_metadata():
            if m.size_bytes is not None:
                has_size = True
                size += m.size_bytes
        if not has_size:
            return -1
        else:
            return size
def size_bytes ( self ) -> int : size = 0 has_size = False for m in self . get_metadata ( ) : if m . size_bytes is not None : has_size = True size += m . size_bytes if not has_size : return - 1 else : return size
Returns the total size in bytes of the blocks, or -1 if not known.
Returns the total size in bytes of the blocks or - 1 if not known .
"""Returns the total size in bytes of the blocks, or -1 if not known."""
self