Files
ServerSync/lib/markdown_it/__pycache__/token.cpython-314.pyc

57 lines
9.2 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
<00> <0C>i<EFBFBD><00><01><><00>^RIHt^RIHtHt^RIt^RIHtH t ^RI
t
RRlt ]P!RR7!R R
44t R#) <0B>)<01> annotations)<02>Callable<6C>MutableMappingN)<02>Any<6E>Literalc<01> <00>V^8<>dQhRRRR/#)<04><00>valuer<00>return<72>)<01>formats"<22>8/tmp/pip-target-qd_sq_1j/lib/python/markdown_it/token.py<70> __annotate__r s<00><00> <11> <11><13> <11><13> <11>c<05>\<00>V'g/#\V\4'd \V4#V#)z<>Convert Token.attrs set as ``None`` or ``[[key, value], ...]`` to a dict.
This improves compatibility with upstream markdown-it.
)<03>
isinstance<EFBFBD>list<73>dict)r
s&r<00> convert_attrsr s(<00><00>
<11><11> <09><11>%<25><14><1E><1E><13>E<EFBFBD>{<7B><1A> <10>LrT)<01>slotsc
<01><><00>]tRt^t$R]R&R]R&R]R&]P !]R7tR]R&R t R
]R &^t
R ]R &R t R]R&Rt R]R&Rt R]R&RtR]R&]P !]R7tR]R&RtR]R&RtR]R&RRltRRltRRltR R!ltR"R#ltR$R%ltR&R'ltR(R)ltRR*R+R*R,R R-R R.]/R/R0llt]R1R2l4tR3tR #)4<>Token<65>str<74>type<70>tagzLiteral[-1, 0, 1]<5D>nesting)<01>default_factoryzdict[str, str | int | float]<5D>attrsNzlist[int] | None<6E>map<61>int<6E>levelzlist[Token] | None<6E>children<65><00>content<6E>markup<75>infozdict[Any, Any]<5D>metaF<61>bool<6F>block<63>hiddenc<01><00>V^8<>dQhRR/#)r r <00>Noner )r s"rr<00>Token.__annotate__Ms<00><00>/<2F>/<2F>t<EFBFBD>/rc <09>:<00>\VP4VnR#<00>N)rr<00><01>selfs&r<00> __post_init__<5F>Token.__post_init__Ms<00><00>"<22>4<EFBFBD>:<3A>:<3A>.<2E><04>
rc<01> <00>V^8<>dQhRRRR/#)r <00>namerr r r )r s"rrr-Ps<00><00>3<>3<>c<EFBFBD>3<>c<EFBFBD>3rc <09><><00>\P!R\4WP9dR#\ VPP 44P V4#)zEToken.attrIndex should not be used, since Token.attrs is a dictionary<72><79><EFBFBD><EFBFBD><EFBFBD>)<07>warnings<67>warn<72> UserWarningrr<00>keys<79>index<65>r1r5s&&r<00> attrIndex<65>Token.attrIndexPsF<00><00><10> <0A> <0A> S<> <17>
<EFBFBD> <10>z<EFBFBD>z<EFBFBD> !<21><15>I<EFBFBD><13>D<EFBFBD>J<EFBFBD>J<EFBFBD>O<EFBFBD>O<EFBFBD>%<25>&<26>,<2C>,<2C>T<EFBFBD>2<>2rc<01><00>V^8<>dQhRR/#)r r z#list[tuple[str, str | int | float]]r )r s"rrr-Ys<00><00>(<28>(<28>><3E>(rc <0A>H<00>\VPP44#)zGet (key, value) list of attrs.)rr<00>itemsr0s&r<00> attrItems<6D>Token.attrItemsYs<00><00><13>D<EFBFBD>J<EFBFBD>J<EFBFBD>$<24>$<24>&<26>'<27>'rc<01> <00>V^8<>dQhRRRR/#)r <00>attrDataztuple[str, str | int | float]r r,r )r s"rrr-]s<00><00>"<22>"<22>!><3E>"<22>4<EFBFBD>"rc <0A>0<00>Vwr#VPW#4R#)zAAdd `[ name, value ]` attribute to list. Init attrs if necessary.N)<01>attrSet)r1rFr5r
s&& r<00>attrPush<73>Token.attrPush]s<00><00><1E> <0B><04> <0C> <0C> <0C>T<EFBFBD>!rc<01>$<00>V^8<>dQhRRRRRR/#)r r5rr
zstr | int | floatr r,r )r s"rrr-bs"<00><00>!<21>!<21>C<EFBFBD>!<21>(9<>!<21>d<EFBFBD>!rc <0A>"<00>W PV&R#)z>Set `name` attribute to `value`. Override old value if exists.N<>r)r1r5r
s&&&rrH<00> Token.attrSetbs<00><00> <20>
<EFBFBD>
<EFBFBD>4<EFBFBD>rc<01> <00>V^8<>dQhRRRR/#)r r5rr zNone | str | int | floatr )r s"rrr-fs<00><00>*<2A>*<2A>C<EFBFBD>*<2A>$<<3C>*rc <0A>:<00>VPPVR4#)z@Get the value of attribute `name`, or null if it does not exist.N)r<00>getr=s&&r<00>attrGet<65> Token.attrGetfs<00><00><13>z<EFBFBD>z<EFBFBD>~<7E>~<7E>d<EFBFBD>D<EFBFBD>)<29>)rc<01>$<00>V^8<>dQhRRRRRR/#)r r5rr
r r,r )r s"rrr-js!<00><00> %<25> %<25>S<EFBFBD> %<25><13> %<25><14> %rc <0A><><00>WP9d_VPV,p\V\4'g \RVPV, 24hV RV 2VPV&R#W PV&R#)zyJoin value to existing attribute via space.
Or create new attribute if not exists.
Useful to operate with token classes.
z#existing attr 'name' is not a str: <20> N)rrr<00> TypeError)r1r5r
<00>currents&&& r<00>attrJoin<69>Token.attrJoinjsq<00><00>
<10>:<3A>:<3A> <1D><1A>j<EFBFBD>j<EFBFBD><14>&<26>G<EFBFBD><1D>g<EFBFBD>s<EFBFBD>+<2B>+<2B><1F>9<>$<24>*<2A>*<2A>T<EFBFBD>:J<>9K<39>L<><12><12>#*<2A><19>!<21>E<EFBFBD>7<EFBFBD>3<>D<EFBFBD>J<EFBFBD>J<EFBFBD>t<EFBFBD> <1C>$<24>J<EFBFBD>J<EFBFBD>t<EFBFBD> rc<01> <00>V^8<>dQhRRRR/#)r <00>changesrr rr )r s"rrr-ys<00><00>+<2B>+<2B>c<EFBFBD>+<2B>e<EFBFBD>+rc <0A>0<00>\P!V3/VB#)z&Return a shallow copy of the instance.)<02>dc<64>replace)r1r\s&,r<00>copy<70>
Token.copyys<00><00><11>z<EFBFBD>z<EFBFBD>$<24>*<2A>'<27>*<2A>*rT<> as_upstream<61>meta_serializer<65>filter<65> dict_factoryc <01>0<00>V^8<>dQhRRRRRRRRRR R
R /#) r r"r(rbrcz&Callable[[dict[Any, Any]], Any] | Nonerdz!Callable[[str, Any], bool] | Nonerez'Callable[..., MutableMapping[str, Any]]r <00>MutableMapping[str, Any]r )r s"rrr-}sI<00><00>-<17>-<17><17>-<17><1A> -<17>
@<01> -<17> 2<> -<17>><3E>-<17>
"<22>-rc  <0A><aa<04>V!V3Rl\P!S444pS'd!V!V3RlVP444pV'dHRV9dAVR,'gRM+VR,P4UUu.uFwrxWx.NK
uppVR&V'dRV9dV!VR,4VR&V'dIVPRR4'd1VR,U u.uFp V P VSVVVR7NK up VR&V#uuppiuup i)a<>Return the token as a dictionary.
:param children: Also convert children to dicts
:param as_upstream: Ensure the output dictionary is equal to that created by markdown-it
For example, attrs are converted to null or lists
:param meta_serializer: hook for serializing ``Token.meta``
:param filter: A callable whose return code determines whether an
attribute or element is included (``True``) or dropped (``False``).
Is called with the (key, value) pair.
:param dict_factory: A callable to produce dictionaries from.
For example, to produce ordered dictionaries instead of normal Python
dictionaries, pass in ``collections.OrderedDict``.
c3<01>f<"<00>TF&qP\SVP43x<00>K( R#5ir/)r5<00>getattr)<03>.0<EFBFBD>fr1s& <20>r<00> <genexpr><3E> Token.as_dict.<locals>.<genexpr><3E>s#<00><><00><00>X<><0F>1<EFBFBD><06><06><07><04>a<EFBFBD>f<EFBFBD>f<EFBFBD>(=<3D>><3E><0F>s<00>.1c3<01>N<"<00>TFwrS!W4'gKW3x<00>K R#5ir/r )rk<00>k<>vrds& <20>rrmrn<00>s<00><><00><00>"V<>o<EFBFBD>d<EFBFBD>a<EFBFBD><16>PQ<50><1C>6<EFBFBD>A<EFBFBD>6<EFBFBD>o<EFBFBD>s<00>%<01> %rNr'r")r"rdrerbrc)r^<00>fieldsrBrQ<00>as_dict)
r1r"rbrcrdre<00>mappingrprq<00>childs
f$$$d$ rrs<00> Token.as_dict}s<00><><00>.<1F>X<><02> <09> <09>RV<52><0F>X<>X<><07> <11>"<22>"V<>g<EFBFBD>m<EFBFBD>m<EFBFBD>o<EFBFBD>"V<>V<>G<EFBFBD> <16>7<EFBFBD>g<EFBFBD>-<2D><1F>w<EFBFBD>'<27>'<27><15>)0<><17>)9<>)?<3F>)?<3F>)A<>B<>)A<><14><11>q<EFBFBD>f<EFBFBD>)A<>B<> <14>G<EFBFBD> <1C>
<1B>v<EFBFBD><17>0<>-<2D>g<EFBFBD>f<EFBFBD>o<EFBFBD>><3E>G<EFBFBD>F<EFBFBD>O<EFBFBD> <13><07> <0B> <0B>J<EFBFBD><04>5<>5<>%<25>Z<EFBFBD>0<> #<0E>1<>E<EFBFBD><16> <0A> <0A>%<25>!<21>!-<2D> +<2B>$3<> <1E><12>1<> #<0E>G<EFBFBD>J<EFBFBD> <1F><17><0E><>C<01><>
#s <00> D<06>,Dc<01> <00>V^8<>dQhRRRR/#)r <00>dctrgr rr )r s"rrr-<00>s<00><00><15><15>4<><15><15>rc <0A><><00>V!R/VBpVP'd0VPUu.uFq0PV4NK upVnV#uupi)zConvert a dict to a Token.r )r"<00> from_dict)<04>clsrx<00>token<65>cs&& rrz<00>Token.from_dict<63>sD<00><00><14>
<EFBFBD>c<EFBFBD>
<EFBFBD><05> <10>><3E>><3E>><3E>8=<3D><0E><0E>G<><0E>1<EFBFBD>m<EFBFBD>m<EFBFBD>A<EFBFBD>.<2E><0E>G<>E<EFBFBD>N<EFBFBD><14> <0C><>Hs<00>A rM)<1E>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__<5F>__annotations__r^<00>fieldrrrr!r"r$r%r&r'r)r*r2r>rCrIrHrRrYr`rs<00> classmethodrz<00>__static_attributes__r rrrrs:<00><00>
<0A>I<EFBFBD>;<3B> <0C>H<EFBFBD>!<21> <1E><1E><08> +-<2D>(<28>(<28>4<EFBFBD>*H<>E<EFBFBD> '<27>H<><08>
!<21>C<EFBFBD> <19> <20>=<3D><12>E<EFBFBD>3<EFBFBD>N<EFBFBD>2<>#'<27>H<EFBFBD> <20>'<27>7<><15>G<EFBFBD>S<EFBFBD><15>U<><14>F<EFBFBD>C<EFBFBD><14>?<3F><12>D<EFBFBD>#<23>N<EFBFBD><08> <1E>8<EFBFBD>8<EFBFBD>D<EFBFBD>9<>D<EFBFBD>.<2E>9<>9<><17>E<EFBFBD>4<EFBFBD><17><08><19>F<EFBFBD>D<EFBFBD><18><08>/<2F>3<>(<28>"<22>
!<21>*<2A> %<25>+<2B>-<17><1E>-<17>!<21> -<17>
CG<01> -<17> 59<35> -<17>AE<01>-<17>^<11><15><11>rr)<0E>
__future__r<00>collections.abcrr<00> dataclassesr^<00>typingrrr8r<00> dataclassrr rr<00><module>r<>s><00><01>"<22>4<><18><1F><0F> <11><04><1C><1C>D<EFBFBD><19>\<15>\<15><1A>\r