class_docstr: Base class for auto suggestion implementations.
class_docstr_tok: ["Base","class","for","auto","suggestion","implementations","."]
docstr: Return `None` or a :class:`.Suggestion` instance.
  
  We receive both ``buffer`` and ``document``. The reason is that auto
  suggestions are retrieved asynchronously. (Like completions.) The
  buffer text could be changed in the meantime, but ``document`` contains
  the buffer document like it was at the start of the auto suggestion
  call. So, from here, don't access ``buffer.text``, but use
  ``document.text`` instead.
  
  :param buffer: The :class:`~prompt_toolkit.buffer.Buffer` instance.
  :param document: The :class:`~prompt_toolkit.document.Document` instance.
docstr_tok: ["Return","`","None","`","or","a",":","class",":","`",".Suggestion","`","instance",".","We","receive","both","``","buffer","``","and","``","document","``",".","The","reason","is","that","auto","suggestions","are","retrieved","asynchronously",".","(","Like","completions",".",")","The","buffer","text","could","be","changed","in","the","meantime",",","but","``","document","``","contains","the","buffer","document","like","it","was","at","the","start","of","the","auto","suggestion","call",".","So",",","from","here",",","do","n't","access","``","buffer.text","``",",","but","use","``","document.text","``","instead",".",":","param","buffer",":","The",":","class",":","`","~prompt_toolkit.buffer.Buffer","`","instance",".",":","param","document",":","The",":","class",":","`","~prompt_toolkit.document.Document","`","instance","."]
code: def get_suggestion(self, cli, buffer, document):
      """
      Return `None` or a :class:`.Suggestion` instance.
  
      We receive both ``buffer`` and ``document``. The reason is that auto
      suggestions are retrieved asynchronously. (Like completions.) The
      buffer text could be changed in the meantime, but ``document`` contains
      the buffer document like it was at the start of the auto suggestion
      call. So, from here, don't access ``buffer.text``, but use
      ``document.text`` instead.
  
      :param buffer: The :class:`~prompt_toolkit.buffer.Buffer` instance.
      :param document: The :class:`~prompt_toolkit.document.Document` instance.
      """
  
file_path: catboost/contrib/python/prompt-toolkit/py2/prompt_toolkit/auto_suggest.py
imports: from __future__ import unicode_literals
  from abc import ABCMeta, abstractmethod
  from six import with_metaclass
  from .filters import to_cli_filter
label_desc: Use image node_id 1 for calling the AutoSuggest obj's underlying member method code with example usage: obj.get_suggestion(cli, buffer, document) without return types