Files
ServerSync/lib/prompt_toolkit/layout/__pycache__/utils.cpython-314.pyc

32 lines
4.5 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
9<><39>iC <00><01><><00>^RIHt^RIHtHtHtHtHtHt^RI H
t
]'d^RI H t R.t ]!R]
R7t!RR ]],4tR
R ltR #) <0A>)<01> annotations)<06> TYPE_CHECKING<4E>Iterable<6C>List<73>TypeVar<61>cast<73>overload)<01>OneStyleAndTextTuple)<01> SupportsIndex<65>explode_text_fragments<74>_T)<01>boundc<01><>a<00>]tRt^tRtRtRRltRV3RlltRRlt] R R
l4t
] R R l4t
R V3Rllt
Rt V;t #)<10> _ExplodedListz<74>
Wrapper around a list, that marks it as 'exploded'.
As soon as items are added or the list is extended, the new items are
automatically exploded as well.
Tc<01> <00>V^8<>dQhRRRR/#)<05><00>itemr <00>return<72>None<6E>)<01>formats"<22>B/tmp/pip-target-wqrk2shd/lib/python/prompt_toolkit/layout/utils.py<70> __annotate__<5F>_ExplodedList.__annotate__s<00><00><1C><1C>2<EFBFBD><1C>$<24><1C>c <09>*<00>VPV.4R#<00>N)<01>extend)<02>selfrs&&r<00>append<6E>_ExplodedList.appends<00><00> <0C> <0B> <0B>T<EFBFBD>F<EFBFBD>rc<01> <00>V^8<>dQhRRRR/#)r<00>lst<73> Iterable[_T]rrr)rs"rrrs<00><00>4<>4<>,<2C>4<>4<EFBFBD>4rc <09>8<<01>\SV`\V44R#r)<03>superrr )rr#<00> __class__s&&<26>rr<00>_ExplodedList.extends<00><><00> <0A><07><0E>-<2D>c<EFBFBD>2<>3rc<01>$<00>V^8<>dQhRRRRRR/#)r<00>indexr rr rrr)rs"rrr!s!<00><00>"<22>"<22>M<EFBFBD>"<22><12>"<22><04>"rc <09><00>\hr)<01>NotImplementedError)rr*rs&&&r<00>insert<72>_ExplodedList.insert!s<00><00>!<21>!rc<01>$<00>V^8<>dQhRRRRRR/#)rr*r <00>valuer rrr)rs"rrr's<00><00>G<>G<><1D>G<>r<EFBFBD>G<>d<EFBFBD>Grc <09><00>R#rr<00>rr*r0s&&&r<00> __setitem__<5F>_ExplodedList.__setitem__&s<00><00>DGrc<01>$<00>V^8<>dQhRRRRRR/#)rr*<00>slicer0r$rrr)rs"rrr*s<00><00>I<>I<><15>I<>|<7C>I<><04>Irc <09><00>R#rrr2s&&&rr3r4)s<00><00>FIrc<01>$<00>V^8<>dQhRRRRRR/#)rr*zSupportsIndex | slicer0z_T | Iterable[_T]rrr)rs"rrr,s)<00><00> B<01> B<01>*<2A> B<01>3D<33> B<01> <0A> Brc <0A><><<01>\V\4'g#VP4p\W3^,4p\V\4'd\ RV.4p\
SV`V\V44R#)zT
Ensure that when `(style_str, 'long string')` is set, the string will be
exploded.
zList[_T]N)<08>
isinstancer6<00> __index__<5F>tuplerr&r3r )rr*r0<00> int_indexr's&&& <20>rr3r4,s\<00><><00><1A>%<25><15>'<27>'<27><1D><0F><0F>)<29>I<EFBFBD><19>)<29><11>]<5D>3<>E<EFBFBD> <15>e<EFBFBD>U<EFBFBD> #<23> #<23><18><1A>e<EFBFBD>W<EFBFBD>-<2D>E<EFBFBD> <0A><07><1B>E<EFBFBD>#9<>%<25>#@<40>Arr) <0A>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__<5F>__doc__<5F>explodedr rr-r r3<00>__static_attributes__<5F> __classcell__)r's@rrrsM<00><><00><08><14>H<EFBFBD><1C>4<>4<>"<22>
<0E>G<><0E>G<> <0A>I<><0E>I<> B<01> Brrc<01> <00>V^8<>dQhRRRR/#)r<00> fragmentsr$rz_ExplodedList[_T]r)rs"rrr<s<00><00>!<21>!<21>l<EFBFBD>!<21>7H<37>!rc<05><><00>\V\4'dV#.pVF#vr#pVFpVPW%.VO54K K% \V4#)a
Turn a list of (style_str, text) tuples into another list where each string is
exactly one character.
It should be fine to call this function several times. Calling this on a
list that is already exploded, is a null operation.
:param fragments: List of (style, text) tuples.
)r:rr )rG<00>result<6C>style<6C>string<6E>rest<73>cs& rr r <sV<00><00><12>)<29>]<5D>+<2B>+<2B><18><18><19>F<EFBFBD> )<29><1C><05><04><17>A<EFBFBD> <12>M<EFBFBD>M<EFBFBD>5<EFBFBD>+<2B>d<EFBFBD>+<2B> ,<2C><18>!*<2A> <19><16> <20> rN)<11>
__future__r<00>typingrrrrrr <00>"prompt_toolkit.formatted_text.baser
<00>typing_extensionsr <00>__all__r rr rrr<00><module>rSsJ<00><01>"<22>I<>I<>C<><10>/<2F><1D> <02><07> <0A>T<EFBFBD>-<2D>.<2E><02>(B<01>D<EFBFBD><12>H<EFBFBD>(B<01>V!r