class_docstr: Lexer class that can dynamically returns any Lexer.
  
  :param get_lexer: Callable that returns a :class:`.Lexer` instance.
class_docstr_tok: ["Lexer","class","that","can","dynamically","returns","any","Lexer",".",":","param","get_lexer",":","Callable","that","returns","a",":","class",":","`",".Lexer","`","instance","."]
code: def __init__(self, get_lexer: Callable[[], Lexer | None]) -> None:
      self.get_lexer = get_lexer
      self._dummy = SimpleLexer()
  
file_path: catboost/contrib/python/prompt-toolkit/py3/prompt_toolkit/lexers/base.py
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod
  from typing import Callable, Hashable
  from prompt_toolkit.document import Document
  from prompt_toolkit.formatted_text.base import StyleAndTextTuples
label_desc: Use image node_id 1 to create a new DynamicLexer object from inherited base classes: Lexer with example: obj = DynamicLexer(get_lexer)