class_docstr: Adjust the brightness to improve the rendering on either dark or light
  backgrounds.
  
  For dark backgrounds, it's best to increase `min_brightness`. For light
  backgrounds it's best to decrease `max_brightness`. Usually, only one
  setting is adjusted.
  
  This will only change the brightness for text that has a foreground color
  defined, but no background color. It works best for 256 or true color
  output.
  
  .. note:: Notice that there is no universal way to detect whether the
            application is running in a light or dark terminal. As a
            developer of an command line application, you'll have to make
            this configurable for the user.
  
  :param min_brightness: Float between 0.0 and 1.0 or a callable that returns
      a float.
  :param max_brightness: Float between 0.0 and 1.0 or a callable that returns
      a float.
class_docstr_tok: ["Adjust","the","brightness","to","improve","the","rendering","on","either","dark","or","light","backgrounds",".","For","dark","backgrounds",",","it","'s","best","to","increase","`","min_brightness","`",".","For","light","backgrounds","it","'s","best","to","decrease","`","max_brightness","`",".","Usually",",","only","one","setting","is","adjusted",".","This","will","only","change","the","brightness","for","text","that","has","a","foreground","color","defined",",","but","no","background","color",".","It","works","best","for","256","or","true","color","output",".","..","note",":",":","Notice","that","there","is","no","universal","way","to","detect","whether","the","application","is","running","in","a","light","or","dark","terminal",".","As","a","developer","of","an","command","line","application",",","you","'ll","have","to","make","this","configurable","for","the","user",".",":","param","min_brightness",":","Float","between","0.0","and","1.0","or","a","callable","that","returns","a","float",".",":","param","max_brightness",":","Float","between","0.0","and","1.0","or","a","callable","that","returns","a","float","."]
code: def __init__(
      self,
      min_brightness: AnyFloat = 0.0,
      max_brightness: AnyFloat = 1.0,
  ) -> None:
      self.min_brightness = min_brightness
      self.max_brightness = max_brightness
  
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 to create a new AdjustBrightnessStyleTransformation object from inherited base classes: StyleTransformation with example: obj = AdjustBrightnessStyleTransformation(min_brightness, max_brightness)