+
    -j                    $  a  0 t $ R t^ RIHt ^ RIt^ RIHt ^ RIt^ RIt^ RIH	t	  ! R R4      t
]P                  P                  R4      '       d    ^ RIt]
! 4       tR]R	&   R
 R ltR# R R ltRtR#   ] d    ]P                   ! R4        L9i ; i)a  Allow bash-completion for argparse with argcomplete if installed.

Needs argcomplete>=0.5.6 for python 3.2/3.3 (older versions fail
to find the magic string, so _ARGCOMPLETE env. var is never set, and
this does not need special code).

Function try_argcomplete(parser) should be called directly before
the call to ArgumentParser.parse_args().

The filescompleter is what you normally would use on the positional
arguments specification, in order to get "dirname/" after "dirn<TAB>"
instead of the default "dirname ":

   optparser.add_argument(Config._file_or_dir, nargs='*').completer=filescompleter

Other, application specific, completers should go in the file
doing the add_argument calls as they need to be specified as .completer
attributes as well. (If argcomplete is not installed, the function the
attribute points to will not be used).

SPEEDUP
=======

The generic argcomplete script for bash-completion
(/etc/bash_completion.d/python-argcomplete.sh)
uses a python program to determine startup script generated by pip.
You can speed up completion somewhat by changing this script to include
  # PYTHON_ARGCOMPLETE_OK
so the python-argcomplete-check-easy-install-script does not
need to be called to find the entry point of the code and see if that is
marked  with PYTHON_ARGCOMPLETE_OK.

INSTALL/DEBUGGING
=================

To include this support in another application that has setup.py generated
scripts:

- Add the line:
    # PYTHON_ARGCOMPLETE_OK
  near the top of the main python entry point.

- Include in the file calling parse_args():
    from _argcomplete import try_argcomplete, filescompleter
  Call try_argcomplete just before parse_args(), and optionally add
  filescompleter to the positional arguments' add_argument().

If things do not work right away:

- Switch on argcomplete debugging with (also helpful when doing custom
  completers):
    export _ARC_DEBUG=1

- Run:
    python-argcomplete-check-easy-install-script $(which appname)
    echo $?
  will echo 0 if the magic line has been found, 1 if not.

- Sometimes it helps to find early on errors using:
    _ARGCOMPLETE=1 _ARC_DEBUG=1 appname
  which should throw a KeyError: 'COMPLINE' (which is properly set by the
  global argcomplete script).
)annotationsN)glob)Anyc                  6    ] tR t^JtRtRR R lltR R ltRtR# )	FastFilesCompleterzFast file completer class.c                    V ^8  d   QhRRRR/# )   directoriesboolreturnNone )formats   "i/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/_pytest/_argcomplete.py__annotate__FastFilesCompleter.__annotate__M   s     ' 'D 'D '    c                	    Wn         R # Nr	   )selfr	   s   &&r   __init__FastFilesCompleter.__init__M   s    &r   c               $    V ^8  d   QhRRRRRR/# )r   prefixstrkwargsr   r   z	list[str]r   )r   s   "r   r   r   P   s!      s c i r   c                	X   \         P                  VR ,          9   d?   \        \         P                  P	                  V4      \         P                  ,           4      pM^ p. p. pRV9  dV   RV9  dO   V'       d   VR,          \         P                  8X  d"   VP                  \        VR,           4      4       VR,          pVP                  \        V4      4       \        V4       FD  p\         P                  P                  V4      '       d
   VR,          pVP                  WcR 4       KF  	  V# ):   NN*?z.*/N)
osseplenpathdirnameextendr   sortedisdirappend)r   r   r   
prefix_dir
completionglobbedxs   &&,    r   __call__FastFilesCompleter.__call__P   s    66VBZRWW__V4rvv=>JJ
fF!2VBZ2661tFTM23cMFtF|$Aww}}QSan-	 !
 r   r   N)T)__name__
__module____qualname____firstlineno____doc__r   r0   __static_attributes__r   r   r   r   r   J   s    $' r   r   _ARGCOMPLETEzFastFilesCompleter | Nonefilescompleterc                    V ^8  d   QhRRRR/# r   parserzargparse.ArgumentParserr   r   r   )r   s   "r   r   r   m   s     H H 7 HD Hr   c                6    \         P                  ! V R R7       R# )F)always_complete_optionsN)argcompleteautocompleter<   s   &r   try_argcompleterB   m   s      Gr   c                    V ^8  d   QhRRRR/# r;   r   )r   s   "r   r   r   r   s       7 D r   c                    R # r   r   rA   s   &r   rB   rB   r   s    r   r"   )__conditional_annotations__r6   
__future__r   argparser   r#   systypingr   r   environgetargcomplete.completersr?   ImportErrorexitr9   __annotations__rB   )rE   s   @r   <module>rP      s   >@ #   	 
  8 ::>>.!!% 1C0DN-DH
 N  s   A3 3BB