Files
ServerSync/lib/prompt_toolkit/input/__pycache__/base.cpython-314.pyc

66 lines
8.5 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
9<><39>i<EFBFBD><00><01><><00>Rt^RIHt^RIHtHt^RIHt^RIH t H
t
H t ^RI H t .ROt!R R]R
7t!R R]4t!R R]4t]R Rl4tR#)z
Abstraction of CLI Input.
)<01> annotations)<02>ABCMeta<74>abstractmethod)<01>contextmanager)<03>Callable<6C>ContextManager<65> Generator)<01>KeyPress<73>Input<75> PipeInput<75>
DummyInputc<01><><00>]tRt^tRt]RRl4t]RRl4t]RRl4tRR lt R
R lt
] ]R R l44t ]RRl4t ]RRl4t]RRl4t]RRl4tRRltRtR#)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<01><00>V^8<>dQhRR/#<00><03><00>return<72>int<6E>)<01>formats"<22>@/tmp/pip-target-wqrk2shd/lib/python/prompt_toolkit/input/base.py<70> __annotate__<5F>Input.__annotate__s<00><00> <0C> <0C><03> <0C>c <0A><00>R#)z+
Fileno for putting this in an event loop.
Nr<00><01>selfs&r<00>fileno<6E> Input.fileno<00><00>rc<01><00>V^8<>dQhRR/#<00>rr<00>strr)rs"rrr$s<00><00> <0C> <0C><03> rc <0A><00>R#)z0
Identifier for storing type ahead key presses.
Nrrs&r<00>typeahead_hash<73>Input.typeahead_hash#rrc<01><00>V^8<>dQhRR/#<00>rrzlist[KeyPress]r)rs"rrr*s<00><00> <0C> <0C>><3E> rc <0A><00>R#)zD
Return a list of Key objects which are read/parsed from the input.
Nrrs&r<00> read_keys<79>Input.read_keys)rrc<01><00>V^8<>dQhRR/#r&r)rs"rrr/s<00><00><12><12>N<EFBFBD>rc <0A><00>.#)zS
Flush the underlying parser. and return the pending keys.
(Used for vt100 input.)
rrs&r<00>
flush_keys<EFBFBD>Input.flush_keys/s <00><00>
<12> rc<01><00>V^8<>dQhRR/#<00>rr<00>Noner)rs"rrr6<00><00><00> <0A> <0A>t<EFBFBD> rc <0A><00>R#)z>The event loop can call this when the input has to be flushed.Nrrs&r<00>flush<73> Input.flush6<00><00><00> rc<01><00>V^8<>dQhRR/#<00>rr<00>boolr)rs"rrr<s<00><00><15><15><04>rc <0A><00>R#)z/Should be true when the input stream is closed.Frrs&r<00>closed<65> Input.closed:s<00><00>rc<01><00>V^8<>dQhRR/#<00>rr<00>ContextManager[None]r)rs"rrrAs<00><00> <0C> <0C>.<2E> rc <0A><00>R#)z5
Context manager that turns the input into raw mode.
Nrrs&r<00>raw_mode<64>Input.raw_mode@rrc<01><00>V^8<>dQhRR/#r=r)rs"rrrGs<00><00> <0C> <0C>1<> rc <0A><00>R#)z8
Context manager that turns the input into cooked mode.
Nrrs&r<00> cooked_mode<64>Input.cooked_modeFrrc<01> <00>V^8<>dQhRRRR/#<00>r<00>input_ready_callbackzCallable[[], None]rr>r)rs"rrrMs<00><00> <0C> <0C>+=<3D> <0C>BV<42> rc <0A><00>R#)zR
Return a context manager that makes this input active in the current
event loop.
Nr<00>rrHs&&r<00>attach<63> Input.attachLrrc<01><00>V^8<>dQhRR/#r=r)rs"rrrTs<00><00> <0C> <0C>,<2C> rc <0A><00>R#)zc
Return a context manager that makes sure that this input is not active
in the current event loop.
Nrrs&r<00>detach<63> Input.detachSrrc<01><00>V^8<>dQhRR/#r/r)rs"rrrZr1rc <0A><00>R#)z Close input.Nrrs&r<00>close<73> Input.closeZr5rrN)<13>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__<5F>__doc__rrr#r(r,r3<00>propertyr:r@rDrKrOrS<00>__static_attributes__rrrr
r
s<><00><00><08><14> <0C><14> <0C>
<14> <0C><14> <0C>
<14> <0C><14> <0C>
<12> <0A><0E><13><15><14><0E><15><14> <0C><14> <0C>
<14> <0C><14> <0C>
<14> <0C><14> <0C> <14> <0C><14> <0C>  <0A> r)<01> metaclassc<01>F<00>]tRt^_tRt]RRl4t]RRl4tRtR#)r z
Abstraction for pipe input.
c<01> <00>V^8<>dQhRRRR/#)r<00>data<74>bytesrr0r)rs"rr<00>PipeInput.__annotate__es<00><00>-<2D>-<2D>u<EFBFBD>-<2D><14>-rc <0A><00>R#)zFeed byte string into the pipeNr<00>rr_s&&r<00>
send_bytes<EFBFBD>PipeInput.send_bytesdrrc<01> <00>V^8<>dQhRRRR/#)rr_r!rr0r)rs"rrrais<00><00>/<2F>/<2F>c<EFBFBD>/<2F>d<EFBFBD>/rc <0A><00>R#)z Feed a text string into the pipeNrrcs&&r<00> send_text<78>PipeInput.send_texthrrrN) rUrVrWrXrYrrdrhr[rrrr r _s/<00><00><08><14>-<2D><14>-<2D><14>/<2F><14>/rc<01><><00>]tRt^mtRtRRltRRltRRlt]RR l4t R
R lt
R R lt RRlt RRlt RtR#)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<01><00>V^8<>dQhRR/#rr)rs"rr<00>DummyInput.__annotate__us<00><00>"<22>"<22><03>"rc <09><00>\h<01>N)<01>NotImplementedErrorrs&rr<00>DummyInput.filenous<00><00>!<21>!rc<01><00>V^8<>dQhRR/#r r)rs"rrrlxs<00><00>#<23>#<23><03>#rc <09><00>R\V4 2#)zdummy-)<01>idrs&rr#<00>DummyInput.typeahead_hashxs<00><00><17><02>4<EFBFBD><08>z<EFBFBD>"<22>"rc<01><00>V^8<>dQhRR/#r&r)rs"rrrl{s<00><00><12><12>><3E>rc <09><00>.#rnrrs&rr(<00>DummyInput.read_keys{s<00><00><11> rc<01><00>V^8<>dQhRR/#r7r)rs"rrrls<00><00><14><14><04>rc <09><00>R#)Trrs&rr:<00>DummyInput.closed~s<00><00>rc<01><00>V^8<>dQhRR/#r=r)rs"rrrl<00>s<00><00>(<28>(<28>.<2E>(rc <09><00>\4#rn<00><01>_dummy_context_managerrs&rr@<00>DummyInput.raw_mode<64><00> <00><00>%<25>'<27>'rc<01><00>V^8<>dQhRR/#r=r)rs"rrrl<00>s<00><00>(<28>(<28>1<>(rc <09><00>\4#rnr}rs&rrD<00>DummyInput.cooked_mode<64>r<>rc<01> <00>V^8<>dQhRRRR/#rGr)rs"rrrl<00>s<00><00>(<28>(<28>+=<3D>(<28>BV<42>(rc <09>$<00>V!4\4#rnr}rJs&&rrK<00>DummyInput.attach<63>s<00><00> <1D><1E>%<25>'<27>'rc<01><00>V^8<>dQhRR/#r=r)rs"rrrl<00>s<00><00>(<28>(<28>,<2C>(rc <09><00>\4#rnr}rs&rrO<00>DummyInput.detach<63>r<>rrN)rUrVrWrXrYrr#r(rZr:r@rDrKrOr[rrrr r msC<00><00><08>"<22>#<23><12><0E><14><0E><14>
(<28>(<28>(<28>(<28>(rc<01><00>V^8<>dQhRR/#)rrzGenerator[None, None, None]r)rs"rrr<00>s<00><00>
<EFBFBD>
<EFBFBD> ;<3B>
rc#<01>"<00>Rx<00>R#5irnrrrrr~r~<00>s<00><00><00> <09>s<00> N)r
r r )rY<00>
__future__r<00>abcrr<00>
contextlibr<00>typingrrr<00>prompt_toolkit.key_bindingr <00>__all__r
r r r~rrr<00><module>r<>sa<00><01><04>#<23>'<27>%<25>6<>6<>/<2F> <02><07>H <0A>g<EFBFBD>H <0A>V /<2F><05> /<2F>((<28><15>((<28>V<10>
<EFBFBD><10>
r