def cell_length(self) -> int:
        """The number of terminal cells required to display self.text.

        Returns:
            int: A number of cells.
        """
        text, _style, control = self
        return 0 if control else cell_len(text)
The number of terminal cells required to display self.text.

        Returns:
            int: A number of cells.
        
rich/segment.py