class_docstr: Inherit from this class if you wish to override any of the stages below. Otherwise, use
  ``argcomplete.autocomplete()`` directly (it's a convenience instance of this class). It has the same signature as
  :meth:`CompletionFinder.__call__()`.
docstr: Alternate entry point for using the argcomplete completer in a readline-based REPL. See also
  `rlcompleter <https://docs.python.org/3/library/rlcompleter.html#completer-objects>`_.
  Usage:
  
  .. code-block:: python
  
      import argcomplete, argparse, readline
      parser = argparse.ArgumentParser()
      ...
      completer = argcomplete.CompletionFinder(parser)
      readline.set_completer_delims("")
      readline.set_completer(completer.rl_complete)
      readline.parse_and_bind("tab: complete")
      result = input("prompt> ")
docstr_tok: ["Alternate","entry","point","for","using","the","argcomplete","completer","in","a","readline-based","REPL",".","See","also","`","rlcompleter","<","https",":","\/\/docs.python.org\/3\/library\/rlcompleter.html","#","completer-objects",">","`","_",".","Usage",":","..","code-block",":",":","python","import","argcomplete",",","argparse",",","readline","parser","=","argparse.ArgumentParser","(",")","...","completer","=","argcomplete.CompletionFinder","(","parser",")","readline.set_completer_delims","(","``","''",")","readline.set_completer","(","completer.rl_complete",")","readline.parse_and_bind","(","``","tab",":","complete","''",")","result","=","input","(","``","prompt",">","``",")"]
code: def rl_complete(self, text, state):
      """
      Alternate entry point for using the argcomplete completer in a readline-based REPL. See also
      `rlcompleter <https://docs.python.org/3/library/rlcompleter.html#completer-objects>`_.
      Usage:
  
      .. code-block:: python
  
          import argcomplete, argparse, readline
          parser = argparse.ArgumentParser()
          ...
          completer = argcomplete.CompletionFinder(parser)
          readline.set_completer_delims("")
          readline.set_completer(completer.rl_complete)
          readline.parse_and_bind("tab: complete")
          result = input("prompt> ")
      """
      if state == 0:
          (
              cword_prequote,
              cword_prefix,
              cword_suffix,
              comp_words,
              first_colon_pos,
          ) = split_line(text)
          comp_words.insert(0, sys.argv[0])
          matches = self._get_completions(
              comp_words, cword_prefix, cword_prequote, first_colon_pos
          )
          self._rl_matches = [
              text + match[len(cword_prefix) :] for match in matches
          ]
  
      if state < len(self._rl_matches):
          return self._rl_matches[state]
      else:
          return None
  
imports: import argparse
  import os
  import sys
  from collections.abc import Mapping
  from typing import Callable, Dict, List, Optional, Sequence, Union
  from .None import io
  from .completers import ChoicesCompleter, FilesCompleter, SuppressCompleter
  from .io import debug, mute_stderr
  from .lexers import split_line
  from .packages._argparse import IntrospectiveArgumentParser, action_is_greedy, action_is_open, action_is_satisfied
label_desc: Use image node_id 14 for calling the CompletionFinder obj's underlying member method code with example usage: obj.rl_complete(text, state) and returns: self, None