class_docstr: Style class that can dynamically returns an other Style.
  
  :param get_style: Callable that returns a :class:`.Style` instance.
class_docstr_tok: ["Style","class","that","can","dynamically","returns","an","other","Style",".",":","param","get_style",":","Callable","that","returns","a",":","class",":","`",".Style","`","instance","."]
code: def __init__(self, get_style: Callable[[], BaseStyle | None]):
      self.get_style = get_style
      self._dummy = DummyStyle()
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod, abstractproperty
  from typing import Callable, Hashable, NamedTuple
label_desc: Use image node_id 1 to create a new DynamicStyle object from inherited base classes: BaseStyle with example: obj = DynamicStyle(get_style)