class_docstr: A piece of text with associated style. Segments are produced by the Console render process and
  are ultimately converted in to strings to be written to the terminal.
  
  Args:
      text (str): A piece of text.
      style (:class:`~rich.style.Style`, optional): An optional style to apply to the text.
      control (Tuple[ControlCode], optional): Optional sequence of control codes.
  
  Attributes:
      cell_length (int): The cell length of this Segment.
docstr: Remove all color from an iterable of segments.
  
  Args:
      segments (Iterable[Segment]): An iterable segments.
  
  Yields:
      Segment: Segments with colorless style.
docstr_tok: ["Remove","all","color","from","an","iterable","of","segments",".","Args",":","segments","(","Iterable","[","Segment","]",")",":","An","iterable","segments",".","Yields",":","Segment",":","Segments","with","colorless","style","."]
code: def remove_color(
      cls, segments: Iterable["Segment"]
  ) -> Iterable["Segment"]:
      """Remove all color from an iterable of segments.
  
      Args:
          segments (Iterable[Segment]): An iterable segments.
  
      Yields:
          Segment: Segments with colorless style.
      """
  
      cache: Dict[Style, Style] = {}
      for text, style, control in segments:
          if style:
              colorless_style = cache.get(style)
              if colorless_style is None:
                  colorless_style = style.without_color
                  cache[style] = colorless_style
              yield cls(text, colorless_style, control)
          else:
              yield cls(text, None, control)
  
imports: from enum import IntEnum
  from functools import lru_cache
  from itertools import filterfalse
  from logging import getLogger
  from operator import attrgetter
  from typing import TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Type, Union
  from .cells import _is_single_cell_widths, cached_cell_len, cell_len, get_character_cell_size, set_cell_size
  from .repr import Result, rich_repr
  from .style import Style
label_desc: Use image node_id 22 for calling the Segment obj's underlying member method code with example usage: obj.remove_color(cls, segments) without return types