class_docstr: Wrapper around any other completer that will enable/disable the completions
  depending on whether the received condition is satisfied.
  
  :param completer: :class:`.Completer` instance.
  :param filter: :class:`.Filter` instance.
class_docstr_tok: ["Wrapper","around","any","other","completer","that","will","enable\/disable","the","completions","depending","on","whether","the","received","condition","is","satisfied",".",":","param","completer",":",":","class",":","`",".Completer","`","instance",".",":","param","filter",":",":","class",":","`",".Filter","`","instance","."]
code: def __init__(
      self, completer: Completer, filter: FilterOrBool
  ) -> None:
      self.completer = completer
      self.filter = to_filter(filter)
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod
  from typing import AsyncGenerator, Callable, Iterable, Sequence
  from prompt_toolkit.document import Document
  from prompt_toolkit.eventloop import aclosing, generator_to_async_generator
  from prompt_toolkit.filters import FilterOrBool, to_filter
  from prompt_toolkit.formatted_text import AnyFormattedText, StyleAndTextTuples
label_desc: Use image node_id 1 to create a new ConditionalCompleter object from inherited base classes: Completer with example: obj = ConditionalCompleter(completer, filter)