+
    Ri	                    j    ^ RI Ht ^ RIt^ RIt^ RIHtHt ^RIHtH	t	H
t
 RR.tRR R lltR	 R
 ltR# )    )annotationsN)ContextManagerTextIO)
DummyInputInput	PipeInputcreate_inputcreate_pipe_inputc               $    V ^8  d   QhRRRRRR/# )   stdinzTextIO | Nonealways_prefer_ttyboolreturnr    )formats   "\/home/ubuntu/hermes-agent/venv/lib/python3.14/site-packages/prompt_toolkit/input/defaults.py__annotate__r      s"     )! )! )! )!RW )!    c                   \         P                  R8X  dG   ^RIHp V f   \         P                  f   \        4       # T! T ;'       g    \         P                  4      # ^RIHp V fi   \         P                  p V'       dQ   \         P                  \         P                  \         P                  3 F  pVP                  4       '       g   K  Tp  M	   V P                  4        T! T 4      #   \        P                   d    \        4       u # i ; i)a  
Create the appropriate `Input` object for the current os/environment.

:param always_prefer_tty: When set, if `sys.stdin` is connected to a Unix
    `pipe`, check whether `sys.stdout` or `sys.stderr` are connected to a
    pseudo terminal. If so, open the tty for reading instead of reading for
    `sys.stdin`. (We can open `stdout` or `stderr` for reading, this is how
    a `$PAGER` works.)
win32)
Win32Input)
Vt100Input)sysplatformr   r   r   r   vt100r   stdoutstderrisattyfilenoioUnsupportedOperation)r   r   r   r   objs   &&   r   r	   r	      s     ||w% =SYY.<%,,399--% =IIE IIszz3::>Czz|| # ?	 LLN %   && 	 <	 s   C' 'D	D	c                   V ^8  d   QhRR/# )r   r   zContextManager[PipeInput]r   )r   s   "r   r   r   ;   s     ' '4 'r   c                     \         P                  R8X  d   ^RIHp  V P	                  4       # ^RIHp VP	                  4       # )a!  
Create an input pipe.
This is mostly useful for unit testing.

Usage::

    with create_pipe_input() as input:
        input.send_text('inputdata')

Breaking change: In prompt_toolkit 3.0.28 and earlier, this was returning
the `PipeInput` directly, rather than through a context manager.
r   )Win32PipeInput)PosixPipeInput)r   r   
win32_piper&   create
posix_piper'   )r&   r'   s     r   r
   r
   ;   s4     ||w.$$&&.$$&&r   )NF)
__future__r   r!   r   typingr   r   baser   r   r   __all__r	   r
   r   r   r   <module>r/      s1    " 	 
 ) . . )!X'r   