class_docstr: Base class for any style transformation.
class_docstr_tok: ["Base","class","for","any","style","transformation","."]
docstr: Take an `Attrs` object and return a new `Attrs` object.
  
  Remember that the color formats can be either "ansi..." or a 6 digit
  lowercase hexadecimal color (without '#' prefix).
docstr_tok: ["Take","an","`","Attrs","`","object","and","return","a","new","`","Attrs","`","object",".","Remember","that","the","color","formats","can","be","either","``","ansi","...","''","or","a","6","digit","lowercase","hexadecimal","color","(","without","'","#","'","prefix",")","."]
code: def transform_attrs(self, attrs: Attrs) -> Attrs:
      """
      Take an `Attrs` object and return a new `Attrs` object.
  
      Remember that the color formats can be either "ansi..." or a 6 digit
      lowercase hexadecimal color (without '#' prefix).
      """
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod
  from colorsys import hls_to_rgb, rgb_to_hls
  from typing import Callable, Hashable, Sequence
  from prompt_toolkit.cache import memoized
  from prompt_toolkit.filters import FilterOrBool, to_filter
  from prompt_toolkit.utils import AnyFloat, to_float, to_str
  from .base import ANSI_COLOR_NAMES, Attrs
  from .style import parse_color
label_desc: Use image node_id 1 for calling the StyleTransformation obj's underlying member method code with example usage: obj.transform_attrs(attrs) without return types