Files
ServerSync/lib/rich/__pycache__/measure.cpython-314.pyc

78 lines
7.2 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
<00> <0C>i<EFBFBD><00><00><><00>^RIHt^RIHtHtHtHtHt^RIH t ^RI
H t H t ]'d ^RI HtHtHt!RR]4tRR ltR
#) <0B>)<01>
itemgetter)<05> TYPE_CHECKING<4E>Callable<6C>
NamedTuple<EFBFBD>Optional<61>Sequence)<01>errors)<02> is_renderable<6C> rich_cast)<03>Console<6C>ConsoleOptions<6E>RenderableTypec<00><>a<00>]tRt^ toRt]V3RlRl4tV3RlRltV3RlRltV3RlR lt RV3R lR llt
] V3R lRl4t V3Rlt RtVtR
#)<12> MeasurementzSStores the minimum and maximum widths (in characters) required to render an object.c<00> <<01>V^8<>dQhRS[/#)<02><00>return<72><01>int)<02>format<61> __classdict__s"<22><>3/tmp/pip-target-qd_sq_1j/lib/python/rich/measure.py<70> __annotate__<5F>Measurement.__annotate__s<00><><00>+<2B>+<2B>c<EFBFBD>+<2B>c <0C><<00>VPVP,
#)z+Get difference between maximum and minimum.)<02>maximum<75>minimum)<01>selfs&r<00>span<61>Measurement.spans<00><00><14>|<7C>|<7C>d<EFBFBD>l<EFBFBD>l<EFBFBD>*<2A>*rc<00><<01>V^8<>dQhRR/#)rrr<00>)rrs"<22>rrrs<00><><00>K<01>K<01>=<3D>Krc
 <0C><><00>Vwr\\^V4V4p\\^V4\^\W444#)z{Get measurement that ensures that minimum <= maximum and minimum >= 0
Returns:
Measurement: A normalized measurement.
)<03>min<69>maxr)rrrs& r<00> normalize<7A>Measurement.normalizes=<00><00>  <20><18><07><15>c<EFBFBD>!<21>W<EFBFBD>o<EFBFBD>w<EFBFBD>/<2F><07><1A>3<EFBFBD>q<EFBFBD>'<27>?<3F>C<EFBFBD><01>3<EFBFBD>w<EFBFBD>3H<33>,I<>J<>Jrc<00>$<<01>V^8<>dQhRS[RR/#<00>r<00>widthrrr)rrs"<22>rrr"s<00><><00>
E<01>
E<01>#<23>
E<01>-<2D>
Erc <0C>F<00>Vwr#\\W!4\W144#)z<>Get a RenderableWith where the widths are <= width.
Args:
width (int): Maximum desired width.
Returns:
Measurement: New Measurement object.
)rr%<00>rr+rrs&& r<00> with_maximum<75>Measurement.with_maximum"s#<00><00> <20><18><07><1A>3<EFBFBD>w<EFBFBD>.<2E><03>G<EFBFBD>0C<30>D<>Drc<00>$<<01>V^8<>dQhRS[RR/#r*r)rrs"<22>rrr.s<00><><00> E<01> E<01>#<23> E<01>-<2D> Erc <0C>^<00>Vwr#\^V4p\\W!4\W144#)z<>Get a RenderableWith where the widths are >= width.
Args:
width (int): Minimum desired width.
Returns:
Measurement: New Measurement object.
)r&rr-s&& r<00> with_minimum<75>Measurement.with_minimum.s.<00><00> <20><18><07><13>A<EFBFBD>u<EFBFBD> <0A><05><1A>3<EFBFBD>w<EFBFBD>.<2E><03>G<EFBFBD>0C<30>D<>DrNc<00>J<<01>V^8<>dQhRS[S[,RS[S[,RR/#)r<00> min_width<74> max_widthrr)rr)rrs"<22>rrr;s-<00><><00><1B><1B>!<21>#<23><1D><1B>:B<>3<EFBFBD>-<2D><1B> <16>rc <0C>^<00>TpVeVPV4pVeVPV4pV#)aClamp a measurement within the specified range.
Args:
min_width (int): Minimum desired width, or ``None`` for no minimum. Defaults to None.
max_width (int): Maximum desired width, or ``None`` for no maximum. Defaults to None.
Returns:
Measurement: New Measurement object.
)r2r.)rr5r6<00> measurements&&& r<00>clamp<6D>Measurement.clamp;s;<00><00><1B> <0B> <14> <20>%<25>2<>2<>9<EFBFBD>=<3D>K<EFBFBD> <14> <20>%<25>2<>2<>9<EFBFBD>=<3D>K<EFBFBD><1A>rc<00>*<<01>V^8<>dQhRRRRRRRR/#) r<00>consoler <00>optionsr <00>
renderablerrrr#)rrs"<22>rrrOs-<00><><00>+<0E>+<0E><1F>+<0E>*:<3A>+<0E>HX<48>+<0E> <16>+rc <0C><><00>VPpV^8d \^^4#\V\4'dVP W2P
RR7p\ V4p\V4'dp\VRR4pVeSV!W4P4PV4pVP^8d \^^4#VP4#\^V4#\P!RV: R24h)a<>Get a measurement for a renderable.
Args:
console (~rich.console.Console): Console instance.
options (~rich.console.ConsoleOptions): Console options.
renderable (RenderableType): An object that may be rendered with Rich.
Raises:
errors.NotRenderableError: If the object is not renderable.
Returns:
Measurement: Measurement object containing range of character widths required to render the object.
F)<02>markup<75> highlight<68>__rich_measure__NzUnable to get render width for zD; a str, Segment, or object with __rich_console__ method is required)r6r<00>
isinstance<EFBFBD>str<74>
render_strr@r r
<00>getattrr'r.rr <00>NotRenderableError)<07>clsr<r=r><00>
_max_width<EFBFBD>get_console_width<74> render_widths&&&& r<00>get<65>Measurement.getNs<><00><00>"<1D>&<26>&<26>
<EFBFBD> <15><01>><3E><1E>q<EFBFBD>!<21>$<24> $<24> <15>j<EFBFBD>#<23> &<26> &<26> <20>+<2B>+<2B><1A>><3E>><3E>U<EFBFBD>,<2C><0E>J<EFBFBD><1F>z<EFBFBD>*<2A>
<EFBFBD> <18><1A> $<24> $<24><18>
<EFBFBD>$6<><04>=<3D> <1E>!<21>,<2C>%<25>g<EFBFBD>7<><1E>Y<EFBFBD>[<5B>!<21>\<5C>*<2A>-<2D><1D>
 <20>'<27>'<27>!<21>+<2B>&<26>q<EFBFBD>!<21>,<2C>,<2C>#<23>-<2D>-<2D>/<2F>/<2F>"<22>1<EFBFBD>j<EFBFBD>1<>1<><18>+<2B>+<2B>1<>*<2A><1E>@U<01>U<01><0E> rc<00>2<<01>V^8<>dQh/S[;R&S[;R&#)rrrr)rrs"<22>rrr s<00><><00><00><11>L<EFBFBD><01>
<11>L<EFBFBD> rr#)NN)<10>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__<5F>__doc__<5F>propertyr r'r.r2r9<00> classmethodrL<00>__annotate_func__<5F>__static_attributes__<5F>__classdictcell__)rs@rrr sl<00><><00><00>]<5D>6<>5<> <0A>+<2B><0E>+<2B>K<01>K<01>
E<01>
E<01> E<01> E<01><1B><1B>&<11>+<0E><11>+<0E>I<01>rrc<00>><00>V^8<>dQhRRRRR\R,RR/#) rr<r r=r <00> renderablesrrr)r)rs"rrr}s6<00><00><1A><1A> <16><1A> <1D><1A><1A>*<2A>+<2B><1A><13> rc <04><00>V'g \^^4#\PpVUu.uF qC!WV4NK pp\\V\^4R7P\V\^4R7P
4pV#uupi)a<>Get a measurement that would fit a number of renderables.
Args:
console (~rich.console.Console): Console instance.
options (~rich.console.ConsoleOptions): Console options.
renderables (Iterable[RenderableType]): One or more renderable objects.
Returns:
Measurement: Measurement object containing range of character widths required to
contain all given renderables.
)<01>key)rrLr&rrr)r<r=rZ<00>get_measurementr><00> measurements<74>measured_widths&&& r<00>measure_renderablesr`}s<><00><00> <17><1A>1<EFBFBD>a<EFBFBD> <20> <20>!<21>o<EFBFBD>o<EFBFBD>O<EFBFBD>HS<48><06>HS<48>*<2A><0F><07>*<2A>5<> <0B><11><06>!<21> <0B>L<EFBFBD>j<EFBFBD><11>m<EFBFBD>,<2C>4<>4<> <0B>L<EFBFBD>j<EFBFBD><11>m<EFBFBD>,<2C>4<>4<><06>N<EFBFBD> <1A><19><>s<00>BN)<13>operatorr<00>typingrrrrr<00>r <00>protocolr
r r<r r rrr`r#rr<00><module>res1<00><01><1F>J<>J<><14>.<2E><10>@<40>@<40>o<0E>*<2A>o<0E>dr