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

61 lines
6.9 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
9<><39>i<EFBFBD><00><01><>a<00>0t$Rt^RIHt^RIHtHt^RIHtH t H
t
.R'Ot !R R]
4t ] !R
R
R R R R R R R R R 7
t .R(OtRRRRRRRRRRRRRRRR RRR R/
tR!]R&]!]P%44P']!]44'gQh]!]P)44]!]4,'dQh!R"R]R#7t!R$R]4t!R%R]4tR&#))z#
The base classes for the styling.
)<01> annotations)<02>ABCMeta<74>abstractmethod)<03>Callable<6C>Hashable<6C>
NamedTuple<EFBFBD>Attrs<72>ANSI_COLOR_NAMES_ALIASES<45> BaseStyle<6C>
DummyStyle<EFBFBD> DynamicStylec<01>|<00>]tRt^t$R]R&R]R&R]R&R]R&R]R&R]R&R]R &R]R
&R]R &R]R &R tR#)rz
str | None<6E>color<6F>bgcolorz bool | None<6E>bold<6C> underline<6E>strike<6B>italic<69>blink<6E>reverse<73>hidden<65>dim<69>N)<06>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__<5F>__annotations__<5F>__static_attributes__r<00><00>A/tmp/pip-target-wqrk2shd/lib/python/prompt_toolkit/styles/base.pyrrs><00><00> <15><15> <17><17>
<15><15><1A><1A> <17><17> <17><17> <16><16> <18><18> <17><17> <14>r<00>F)
rrrrrrrrrr<00>ansired<65> ansigreen<65>
ansiyellow<EFBFBD>ansiblue<75> ansimagenta<74>ansicyan<61>ansigray<61>ansibrightblack<63>ansibrightmagenta<74>ansibrightcyan<61> ansidarkgray<61>ansiteal<61> ansiturquoise<73> ansibrown<77>
ansipurple<EFBFBD> ansifuchsia<69> ansilightgray<61> ansidarkred<65> ansidarkgreen<65> ansidarkbluezdict[str, str]c<01>l<00>]tRt^ptRt]]3RRll4t]]RRl44t ]RRl4t
Rt R #)
r
z0
Abstract base class for prompt_toolkit styles.
c<01>$<00>V^8<>dQhRRRRRR/#<00><06><00> style_str<74>str<74>defaultr<00>returnr)<01>formats"r <00> __annotate__<5F>BaseStyle.__annotate__vs$<00><00>  <0C>  <0C><1C>  <0C>',<2C>  <0C> <0E>  rc <0A><00>R#)z<>
Return :class:`.Attrs` for the given style string.
:param style_str: The style string. This can contain inline styling as
well as classnames (e.g. "class:title").
:param default: `Attrs` to be used if no styling was defined.
Nr<00><03>selfr:r<s&&&r <00>get_attrs_for_style_str<74>!BaseStyle.get_attrs_for_style_stru<00><00>rc<01><00>V^8<>dQhRR/#<00>r9r=zlist[tuple[str, str]]r)r>s"r r?r@<00>s<00><00><12><12>2<>rc <0A><00>.#)zo
The list of style rules, used to create this style.
(Required for `DynamicStyle` and `_MergedStyle` to work.)
r<00>rCs&r <00> style_rules<65>BaseStyle.style_rules<65>s <00><00><12> rc<01><00>V^8<>dQhRR/#<00>r9r=rr)r>s"r r?r@<00>s<00><00> <0C> <0C>8<EFBFBD> rc <0A><00>R#)z<>
Invalidation hash for the style. When this changes over time, the
renderer knows that something in the style changed, and that everything
has to be redrawn.
NrrJs&r <00>invalidation_hash<73>BaseStyle.invalidation_hash<73>rFrrN) rrrr<00>__doc__r<00> DEFAULT_ATTRSrD<00>propertyrKrPrrrr r
r
psN<00><00><08><14>/<<3C>  <0C><14>  <0C><0E><13><12><14><0E><12><14> <0C><14> r)<01> metaclassc<01>N<00>]tRt^<5E>tRt]3RRlltRRlt]RRl4t Rt
R #)
r z&
A style that doesn't style anything.
c<01>$<00>V^8<>dQhRRRRRR/#r8r)r>s"r r?<00>DummyStyle.__annotate__<5F>s$<00><00><17><17><1C><17>',<2C><17> <0E>rc <09><00>V#<00>NrrBs&&&r rD<00>"DummyStyle.get_attrs_for_style_str<74>s <00><00><17>rc<01><00>V^8<>dQhRR/#rNr)r>s"r r?rX<00>s<00><00><11><11>8<EFBFBD>rc <09><00>^#)<01>rrJs&r rP<00>DummyStyle.invalidation_hash<73>s<00><00>rc<01><00>V^8<>dQhRR/#rHr)r>s"r r?rX<00>s<00><00><12><12>2<>rc <09><00>.#rZrrJs&r rK<00>DummyStyle.style_rules<65>s<00><00><11> rrN) rrrrrRrSrDrPrTrKrrrr r r <00>s*<00><00><08>
0=<3D><17>
<11><0E><12><0E>rc<01>Z<00>]tRt^<5E>tRtRRlt]3RRlltRRlt] RR l4t
R
t R #) r z
Style class that can dynamically returns an other Style.
:param get_style: Callable that returns a :class:`.Style` instance.
c<01><00>V^8<>dQhRR/#)r9<00> get_stylezCallable[[], BaseStyle | None]r)r>s"r r?<00>DynamicStyle.__annotate__<5F>s<00><00>#<23>#<23>"@<40>#rc <09>0<00>Wn\4VnR#rZ)rer <00>_dummy)rCres&&r <00>__init__<5F>DynamicStyle.__init__<5F>s<00><00>"<22><0E> <20>l<EFBFBD><04> rc<01>$<00>V^8<>dQhRRRRRR/#r8r)r>s"r r?rf<00>s)<00><00>A<01>A<01><1C>A<01>',<2C>A<01> <0E>Arc <09>l<00>VP4;'g VPpVPW4#rZ)rerhrD)rCr:r<<00>styles&&& r rD<00>$DynamicStyle.get_attrs_for_style_str<74>s-<00><00><15><0E><0E> <20>/<2F>/<2F>D<EFBFBD>K<EFBFBD>K<EFBFBD><05><14>,<2C>,<2C>Y<EFBFBD>@<40>@rc<01><00>V^8<>dQhRR/#rNr)r>s"r r?rf<00>s<00><00>E<01>E<01>8<EFBFBD>Erc <09>f<00>VP4;'g VPP4#rZ)rerhrPrJs&r rP<00>DynamicStyle.invalidation_hash<73>s$<00><00><14><0E><0E> <20>/<2F>/<2F>D<EFBFBD>K<EFBFBD>K<EFBFBD>B<>B<>D<>Drc<01><00>V^8<>dQhRR/#rHr)r>s"r r?rf<00>s<00><00>=<3D>=<3D>2<>=rc <09>^<00>VP4;'g VPP#rZ)rerhrKrJs&r rK<00>DynamicStyle.style_rules<65>s!<00><00><14><0E><0E> <20>/<2F>/<2F>D<EFBFBD>K<EFBFBD>K<EFBFBD><<3C><<3C><r)rhreN) rrrrrRrirSrDrPrTrKrrrr r r <00>s1<00><00><08> #<23>
0=<3D>A<01>E<01><0E>=<3D><0E>=rN)rrS<00>ANSI_COLOR_NAMESr r
r r )<11> ansidefault<6C> ansiblackr"r#r$r%r&r'r(r)<00> ansibrightred<65>ansibrightgreen<65>ansibrightyellow<6F>ansibrightbluer*r+<00> ansiwhite)<18>__conditional_annotations__rR<00>
__future__r<00>abcrr<00>typingrrr<00>__all__rrSrur r<00>set<65>values<65>issubset<65>keysr
r r )r}s@r <00><module>r<>s"<00><><01><04>#<23>'<27>1<>1<> <02><07>
<15>J<EFBFBD>
<15> <04><16>
<0C> <0E> <0E><13> <10> <10>
<0F> <11> <10> <0A> <02> <0A>&<02><10>:<13>%<25><0E>
<EFBFBD><13>%<25><0F><1C><10>-<2D><11>&<26><13>Z<EFBFBD><11>9<EFBFBD><13>[<5B><12>J<EFBFBD> ,<02><18>.<2E> <02> <0B> #<23> *<2A> *<2A> ,<2C>-<2D>6<>6<>s<EFBFBD>;K<>7L<37>M<>M<>M<>M<> <0F>(<28>-<2D>-<2D>/<2F> 0<>3<EFBFBD>7G<37>3H<33> H<> H<>I<>I<>  <0C>'<27>  <0C>F<12><19><12>$=<3D>9<EFBFBD>=r