+
    Ri                        R t ^ RIHt ^ RIHtHt ^ RIHt ^ RIH	t	H
t
Ht ^ RIHt . ROt ! R	 R]R
7      t ! R R]4      t ! R R]4      t]R R l4       tR# )z
Abstraction of CLI Input.
)annotations)ABCMetaabstractmethod)contextmanager)CallableContextManager	Generator)KeyPressInput	PipeInput
DummyInputc                      ] tR t^tRt]R R l4       t]R R l4       t]R R l4       tR R	 lt	R
 R lt
]]R R l4       4       t]R R l4       t]R R l4       t]R R l4       t]R R l4       tR R ltRtR# )r
   z
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`.
c                   V ^8  d   QhRR/#    returnint )formats   "X/home/ubuntu/hermes-agent/venv/lib/python3.14/site-packages/prompt_toolkit/input/base.py__annotate__Input.__annotate__   s           c                    R# )z+
Fileno for putting this in an event loop.
Nr   selfs   &r   filenoInput.fileno       r   c                   V ^8  d   QhRR/# r   r   strr   )r   s   "r   r   r   $   s       r   c                    R# )z0
Identifier for storing type ahead key presses.
Nr   r   s   &r   typeahead_hashInput.typeahead_hash#   r   r   c                   V ^8  d   QhRR/# r   r   zlist[KeyPress]r   )r   s   "r   r   r   *   s      > r   c                    R# )zD
Return a list of Key objects which are read/parsed from the input.
Nr   r   s   &r   	read_keysInput.read_keys)   r   r   c                   V ^8  d   QhRR/# r&   r   )r   s   "r   r   r   /   s      N r   c                    . # )zS
Flush the underlying parser. and return the pending keys.
(Used for vt100 input.)
r   r   s   &r   
flush_keysInput.flush_keys/   s	    
 	r   c                   V ^8  d   QhRR/# r   r   Noner   )r   s   "r   r   r   6         t r   c                    R# )z>The event loop can call this when the input has to be flushed.Nr   r   s   &r   flushInput.flush6       r   c                   V ^8  d   QhRR/# r   r   boolr   )r   s   "r   r   r   <   s       r   c                    R# )z/Should be true when the input stream is closed.Fr   r   s   &r   closedInput.closed:   s     r   c                   V ^8  d   QhRR/# r   r   ContextManager[None]r   )r   s   "r   r   r   A   s      . r   c                    R# )z5
Context manager that turns the input into raw mode.
Nr   r   s   &r   raw_modeInput.raw_mode@   r   r   c                   V ^8  d   QhRR/# r=   r   )r   s   "r   r   r   G   s      1 r   c                    R# )z8
Context manager that turns the input into cooked mode.
Nr   r   s   &r   cooked_modeInput.cooked_modeF   r   r   c                    V ^8  d   QhRRRR/# r   input_ready_callbackzCallable[[], None]r   r>   r   )r   s   "r   r   r   M   s      += BV r   c                    R# )zR
Return a context manager that makes this input active in the current
event loop.
Nr   r   rH   s   &&r   attachInput.attachL   r   r   c                   V ^8  d   QhRR/# r=   r   )r   s   "r   r   r   T   s      , r   c                    R# )zc
Return a context manager that makes sure that this input is not active
in the current event loop.
Nr   r   s   &r   detachInput.detachS   r   r   c                   V ^8  d   QhRR/# r/   r   )r   s   "r   r   r   Z   r1   r   c                    R# )zClose input.Nr   r   s   &r   closeInput.closeZ   r5   r   r   N)__name__
__module____qualname____firstlineno____doc__r   r   r#   r(   r,   r3   propertyr:   r@   rD   rK   rO   rS   __static_attributes__r   r   r   r
   r
      s      
  
  
     
  
     r   )	metaclassc                  F    ] tR t^_tRt]R R l4       t]R R l4       tRtR# )r   z
Abstraction for pipe input.
c                    V ^8  d   QhRRRR/# )r   databytesr   r0   r   )r   s   "r   r   PipeInput.__annotate__e   s     - -u - -r   c                    R# )zFeed byte string into the pipeNr   r   r_   s   &&r   
send_bytesPipeInput.send_bytesd   r   r   c                    V ^8  d   QhRRRR/# )r   r_   r!   r   r0   r   )r   s   "r   r   ra   i   s     / /c /d /r   c                    R# )z Feed a text string into the pipeNr   rc   s   &&r   	send_textPipeInput.send_texth   r   r   r   N)	rU   rV   rW   rX   rY   r   rd   rh   r[   r   r   r   r   r   _   s/     - - / /r   c                      ] tR t^mtRtR R ltR R ltR R lt]R R	 l4       t	R
 R lt
R R ltR R ltR R ltRtR# )r   z
Input for use in a `DummyApplication`

If used in an actual application, it will make the application render
itself once and exit immediately, due to an `EOFError`.
c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   DummyInput.__annotate__u   s     " " "r   c                	    \         hN)NotImplementedErrorr   s   &r   r   DummyInput.filenou   s    !!r   c                   V ^8  d   QhRR/# r    r   )r   s   "r   r   rl   x   s     # # #r   c                	    R \        V 4       2# )zdummy-)idr   s   &r   r#   DummyInput.typeahead_hashx   s    4z""r   c                   V ^8  d   QhRR/# r&   r   )r   s   "r   r   rl   {   s      > r   c                	    . # rn   r   r   s   &r   r(   DummyInput.read_keys{   s    	r   c                   V ^8  d   QhRR/# r7   r   )r   s   "r   r   rl      s       r   c                	    R # )Tr   r   s   &r   r:   DummyInput.closed~   s     r   c                   V ^8  d   QhRR/# r=   r   )r   s   "r   r   rl      s     ( (. (r   c                	    \        4       # rn   _dummy_context_managerr   s   &r   r@   DummyInput.raw_mode       %''r   c                   V ^8  d   QhRR/# r=   r   )r   s   "r   r   rl      s     ( (1 (r   c                	    \        4       # rn   r}   r   s   &r   rD   DummyInput.cooked_mode   r   r   c                    V ^8  d   QhRRRR/# rG   r   )r   s   "r   r   rl      s     ( (+= (BV (r   c                	$    V! 4        \        4       # rn   r}   rJ   s   &&r   rK   DummyInput.attach   s     	%''r   c                   V ^8  d   QhRR/# r=   r   )r   s   "r   r   rl      s     ( (, (r   c                	    \        4       # rn   r}   r   s   &r   rO   DummyInput.detach   r   r   r   N)rU   rV   rW   rX   rY   r   r#   r(   rZ   r:   r@   rD   rK   rO   r[   r   r   r   r   r   m   sC    "#  
(((( (r   c                   V ^8  d   QhRR/# )r   r   zGenerator[None, None, None]r   )r   s   "r   r   r      s     
 
 ; 
r   c               #     "   R x  R # 5irn   r   r   r   r   r~   r~      s     	s   	N)r
   r   r   )rY   
__future__r   abcr   r   
contextlibr   typingr   r   r   prompt_toolkit.key_bindingr	   __all__r
   r   r   r~   r   r   r   <module>r      sa    # ' % 6 6 /Hg HV/ /(( ((V 
 
r   