+
    VBi.                         ^ RI t ^RIHt ^RIHt ^RIHt ^RIHt ^RIH	t	 ^RI
Ht  ! R R	]	4      t ! R
 R]4      tR# )    N)CythonTransform)EncodedString)Options)
PyrexTypes)ExpressionWriter)warningc                   @   a  ] tR t^t o RtRR ltR tR tR tRt	V t
R# )	AnnotationWriterzO
A Cython code writer for Python expressions in argument/variable annotations.
Nc                L    \         P                  ! V 4       Wn        RV n        R# )zdescription is optional. If specified it is used in
warning messages for the nodes that don't convert to string properly.
If not specified then no messages are generated.
FN)r   __init__description
incomplete)selfr   s   &&F/usr/lib/python3.14/site-packages/Cython/Compiler/AutoDocTransforms.pyr   AnnotationWriter.__init__   s    
 	!!$'&    c                    V P                  R 4       RV n        V P                  '       d4   \        VP                  RP                  V P                  4      ^R7       R# R# )z<???>Tz5Failed to convert code to string representation in {}levelNputr   r   r   posformatr   nodes   &&r   
visit_NodeAnnotationWriter.visit_Node   sN    DHHKRR((*124 r   c                    V P                  R 4       RV n        V P                  '       d4   \        VP                  RP                  V P                  4      ^R7       R# R# )z<lambda>Tz7Failed to convert lambda to string representation in {}r   Nr   r   s   &&r   visit_LambdaNode!AnnotationWriter.visit_LambdaNode    sN    DHHMTT((*124 r   c                P    V P                  VP                  P                  4       R # N)r   stringvaluer   s   &&r   visit_AnnotationNode%AnnotationWriter.visit_AnnotationNode)   s    ""#r   )r   r   r"   )__name__
__module____qualname____firstlineno____doc__r   r   r   r%   __static_attributes____classdictcell__)__classdict__s   @r   r
   r
      s#      44$ $r   r
   c                      a a ] tR t^-t oV 3R ltR tR tR tR tR t	RR lt
R tRR	 ltR
 tV 3R ltR tR tR tR tR tRtVtV ;t# )EmbedSignaturec                B   < \         SV `  V4       R V n        R V n        R # r"   )superr   
class_name
class_node)r   context	__class__s   &&r   r   EmbedSignature.__init__/   s    !r   c                @    \        R R7      pVP                  V4      pV# )T)allow_unknown_nodes)r   writer   r   writerresults   &&  r   	_fmt_exprEmbedSignature._fmt_expr4   s    !d;d#r   c                <    \        4       pVP                  V4      pV# r"   )r
   r:   r;   s   &&  r   _fmt_annotationEmbedSignature._fmt_annotation:   s    !#d#r   c                h    V P                   R ,          pVR8H  V n        VR8H  V n        VR8H  V n        R# )zembedsignature.formatcpythonclinicN)current_directivesis_format_cis_format_pythonis_format_clinic)r   signature_formats   & r   _setup_formatEmbedSignature._setup_format@   s;    223JK+s2 0H < 0H <r   c                \   VP                   pR pR pVP                  '       d   V P                  '       d   RpMVP                  '       d   V P                  '       d   RpMV P                  '       dG   VP
                  \        P                  Jd(   VP
                  P                  VP                   ^R7      pM?V P                  '       d.   VP                  '       g   V P                  VP
                  4      pVP                  '       d.   V P                  '       g   V P                  VP                  4      pVP                  '       d   V P                  VP                  4      pV'       d+   VRV,          ,           pV'       d   VRV,          ,           pV# V'       d   VRV,          ,           pV# )Nz$selfz$typefor_display: %sz = %sz=%s)nameis_self_argrJ   is_type_argrH   typer   py_object_typedeclaration_coderI   
annotation	_fmt_typerA   defaultr>   )r   argarg_docrX   
defaultvals   &&   r   _fmt_argEmbedSignature._fmt_argF   s6   ((

???$$$!___$$$!xxz888((33CHH!3L""">>>!^^CHH5
>>>(((!11#..A
;;;4J*!45G!Wz%9:  !34Gr   c                    VP                   pVP                  '       d>   V P                  '       g,   V P                  VP                  4      pVR V,          ,           pV# )rQ   )rR   rX   rJ   rA   )r   r[   r\   rX   s   &&  r   _fmt_star_argEmbedSignature._fmt_star_argc   sH    ((>>>(((!11#..A
!Vj%89r   c                   . pV FK  p	V'       d   V	P                   P                  '       d   K)  V P                  V	4      p
VP                  V
4       KM  	  V'       d2   V P	                  V4      p
VP                  W2,           R V
,          4       M V'       d   VP                  W2,           R4       V'       d   VP                  VR4       V'       d*   V P	                  V4      p
VP                  RV
,          4       V# )z*%s*/z**%s)entryrS   r^   appendra   insert)r   argsnpoargsnpargspargsnkargskargs	hide_selfarglistr[   r\   s   &&&&&&&&   r   _fmt_arglistEmbedSignature._fmt_arglistk   s     CCII$9$9$9--,w'  ((/GNN6+UW_=NN6+S1NN7C(((/GNN6G+,r   c                   V\         P                  J d   R # V P                  '       d   VP                  R^R7      pV# V P                  '       d   R pVP
                  '       d   V P                  R,          pM"VP                  '       d   VP                  4       pVf6   VP                  R^R7      pVP                  RR4      P                  RR4      pV# R # )N rO   c_string_type _rd   p)
r   rV   rH   rW   rI   	is_stringrG   
is_numericpy_type_namereplace)r   rU   coderX   s   &&  r   rY   EmbedSignature._fmt_type   s    :,,,(((;DK"""J~~~!44_E
!..0
!,,RQ,?!\\#s3;;CE
r   c           
     \   V P                  W4WVWxVR 7      pRP                  V4      pV: RV: R2pV P                  '       d   V'       d
   V: RV: 2pV P                  '       gG   RpV	'       d   V P	                  V	4      pMV
'       d   V P                  V
4      pV'       d
   V: RV: 2pV# ))ro   z, ().Nz -> )rq   joinrH   rJ   rA   rY   )r   cls_name	func_nameri   rj   rk   rl   rm   rn   return_exprreturn_typero   rp   arglist_docfunc_docret_docs   &&&&&&&&&&&&    r   _fmt_signatureEmbedSignature._fmt_signature   s    
 ##6& $ 
 ii((+6"*H5H$$$G..{;..5)17;r   c                &   V P                   '       d   V P                  R ,          '       d   V# V'       d8   V P                   '       d   RpMRp\        P                  ! V4      pW1V3,          # V P                   '       d   RpW1,          # RpW1,          # )bindingz	%s
--

%sz%s

%sz%s
--

z%s)rJ   rG   inspectcleandoc)r   	signaturenode_docdocfmts   &&& r   _embed_signatureEmbedSignature._embed_signature   s       T%<%<Y%G%GO$$$'#''1H111$$$% %% %%r   c                R   < \         P                  '       g   V# \        SV `  V4      # r"   )r   
docstringsr2   __call__)r   r   r6   s   &&r   r   EmbedSignature.__call__   s$    !!!K7#D))r   c                    V P                   pV P                  pWn         VP                  V n         V P	                  V4       W n         W0n        V#   \         d    TP                   T n          L=i ; ir"   )r3   r4   rR   AttributeErrorvisitchildren)r   r   oldnameoldclasss   &&  r   visit_ClassDefNode!EmbedSignature.visit_ClassDefNode   sd    //??	."iiDO 	4 !"  	."ooDO	.s   A A/.A/c                    V# r"    r   s   &&r   r   EmbedSignature.visit_LambdaNode   s    r   c                8   V P                   R ,          '       g   V# V P                  4        RpRpVP                  P                  '       ds   V P                  ;'       d    VP
                  R8H  pV'       d0   RpVP
                  pV P                  '       d   V P                  pRpM/V P                  VP
                  rTMV P                  VP
                  rT\        VR^ 4      p\        VR^ 4      p\        VP                  4      V,
          V,
          pV P                  WEVP                  WhVP                  WqP                  VP                  RVR7      p	V	'       Ed?   V'       d>   V P                  '       d,   V P                  P                  P                  P                   p
MVP                  p
V
P"                  e   V
P"                  pM:V'       g1   \        VRR4      e"   VP$                  P                  P"                  pMRpV P'                  W4      pVP                  P                  '       d!   V'       g   VP                  P(                  e   \+        V4      V
n        V'       g4   \        VRR4      e%   \+        V4      VP$                  P                  n        V# )	embedsignatureFr   NTnum_posonly_argsnum_kwonly_args)r   r   ro   py_func)rG   rL   rf   
is_specialr4   rR   rH   r3   getattrlenri   r   star_argstarstar_argreturn_type_annotationrU   scopedocr   r   wrapperbase_cnamer   )r   r   is_constructorro   r3   r   rj   rm   rk   r   
doc_holderold_docnew_docs   &&           r   visit_DefNodeEmbedSignature.visit_DefNode   s   &&'788K	::   !__HHj1HN!
 II	### $I $I(,I$(OOTYY	$ 2A60!4TYY&(72''499T]]%%33	 ( 3	 9$"2"2"2!__2277==
!ZZ
~~)$..#i(F(R,,,,00++I?G::(((Ndjj>Z>Z>f
 "/w!7
!gdIt&D&P)6w)?""&r   c                   VP                   '       g   V# V P                  R ,          '       g   V# V P                  4        V P                  V P                  VP
                  P                  P                  VP
                  P                  VP                  R7      pV'       d   VP                  P                  e   VP                  P                  pM2\        VRR4      e"   VP                  P                  P                  pMRpV P                  W#4      p\        V4      VP                  n        \        VRR4      pVe   \        V4      VP                  n        V# )r   )r   Nr   )overridablerG   rL   r   r3   
declaratorbaserR   ri   r   rf   r   r   r   r   r   )r   r   r   r   r   r   s   &&    r   visit_CFuncDefNode!EmbedSignature.visit_CFuncDefNode  s   K&&'788K''OOT__1166OO  (( ( *	 zz~~)**..y$/;,,,,00++I?G*73DJJNdIt4G"$1'$:!r   c                   V P                   R ,          '       g   V# V P                  4        VP                  pVP                  pVP                  pRpVP
                  R8X  d   V P                  '       d   VP                  P                  R^R7      pVP                  P                  '       g   RV,          pMnVP                  P                  '       d%   VP                  P                  R,           V,           pM-V P                  '       d   V P                  VP                  4      pVfs   VP                   Fb  pVP                  R8w  d   K  V P                  '       d   V P                  : RV: 2pVP                   pV'       g   KQ  V P#                  V4      pKd  	  VeG   V: RV: 2pV P%                  WP&                  4      p	V P(                  '       g   \+        V	4      Vn        V# )	r   Npublicrt   rO   z'%s'r   __get__z: )rG   rL   rf   bodyrR   
visibilityrH   rU   rW   is_pyobjectis_extension_typemodule_namerI   rY   statsr3   r   rA   r   r   rJ   r   )
r   r   rf   r   	prop_name	type_namestatret_annotationr   r   s
   &&        r   visit_PropertyNode!EmbedSignature.visit_PropertyNode  sz   &&'788K

yyJJ		x'!JJ777J	zz--- & 2IZZ111 %

 6 6 <y HI&&& NN5::6	

99	)###+/??I FI!%!<!<!> $ 4 4^ DI #  $-y9I++IyyAG((()'2	r   )r3   r4   rH   rJ   rI   )r   r   Nr   NF)r   r   Nr   NNNF)r'   r(   r)   r*   r   r>   rA   rL   r^   ra   rq   rY   r   r   r   r   r   r   r   r   r,   r-   __classcell__)r6   r.   s   @@r   r0   r0   -   s[     
=:*$.&"*1f2! !r   r0   )r   Visitorr   StringEncodingr   rt   r   r   
CodeWriterr   Errorsr   r
   r0   r   r   r   <module>r      s6     $ )   ) $' $DS_ Sr   