class_docstr: Abstraction for any input.
  
  An instance of this class can be given to the constructor of a
  :class:`~prompt_toolkit.application.Application` and will also be
  passed to the :class:`~prompt_toolkit.eventloop.base.EventLoop`.
docstr: Return a context manager that makes this input active in the current
  event loop.
docstr_tok: ["Return","a","context","manager","that","makes","this","input","active","in","the","current","event","loop","."]
code: def attach(
      self, input_ready_callback: Callable[[], None]
  ) -> ContextManager[None]:
      """
      Return a context manager that makes this input active in the current
      event loop.
      """
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod, abstractproperty
  from contextlib import contextmanager
  from typing import Callable, ContextManager, Generator
  from prompt_toolkit.key_binding import KeyPress
label_desc: Use image node_id 9 for calling the Input obj's underlying member method code with example usage: obj.attach(input_ready_callback) without return types