+
     þÎjg2  ã                   óT  € R t ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIH	t	 ^ RI
Ht ^ RIHt R t]! 4       tRtRR ltRR	 lt ! R
 R]4      tR tR t]]3t]3R lt ! R R]4      t ! R R]4      t ! R R]4      tRR ltR tRP=                  4       tR t ]!R8X  d
   ] ! 4        R# R# )z´
This file contains `__main__` so that it can be run as a commandline tool.

This file contains functions to inspect Numba's support for a given Python
module or a Python package.
N)Úerrors)Úget_versions)Ú
cpu_target)Úcaptured_stdoutc                  óˆ   € \        4       R ,          p V '       g)   \        P                  ! R\        P                  R7       R# V # )zfull-revisionidz>Cannot find git commit hash. Source links could be inaccurate.)ÚcategoryÚmain)r   ÚwarningsÚwarnr   ÚNumbaWarning)Úfulls    ÚO/opt/data/home/.local/lib/python3.14/site-packages/numba/misc/help/inspector.pyÚ_get_commitr      s4   € Ü‹>Ð+Õ,€DßÜ�ŠØLÜ×(Ñ(õ	
ñ Ø€Kó    zLhttps://github.com/numba/numba/blob/{commit}/{path}#L{firstline}-L{lastline}c                óš  € T;'       g    \         pVP                  pVP                  4        VP                  P                  4        / p/ p VP	                  V 4      pVP                  V4      pVP                   F  p VP                  4       WG&   K  	  WSR&   WcR&   WCR&   V#   \         d	    RYG&    K:  i ; i  \         d    RpRp L5i ; i)ag  Return information about the support of a function.

Returns
-------
info : dict
    Defined keys:
    - "numba_type": str or None
        The numba type object of the function if supported.
    - "explained": str
        A textual description of the support.
    - "source_infos": dict
        A dictionary containing the source location of each definition.
Nznot supportedÚ
numba_typeÚ	explainedÚsource_infos)
r   Útyping_contextÚrefreshÚtarget_contextÚresolve_value_typeÚexplain_function_typeÚ	templatesÚget_source_infoÚAttributeErrorÚ
ValueError)ÚfunctionÚtargetÚtyctÚinfor   Únbtyr   Útemps   &&      r   Úinspect_functionr#   "   sÞ   € ð ×!Ð!”z€FØ× Ñ €Dà‡L�L„NØ
×Ñ×!Ñ!Ô#à€Dà€Lð*Ø×&Ñ& xÓ0ˆð ×.Ñ.¨tÓ4ˆ	Ø—N”NˆDð*Ø%)×%9Ñ%9Ó%;�Ó"ñ #ð ˆÑØ!ˆÑØ'ˆÑØ€Køô "ô *Ø%)�Ô"ð*ûô ô $ØˆØ#Š	ð$ús$   ÁB8 Á>B"Â"B5Â4B5Â8C
Ã	C
c              #  óª  "  € Vf   / MTp\        V 4       F·  pVP                  R4      '       d   K  \        W4      p\        P                  \        P
                  3p\        WE4      '       g   KZ  \        WVR7      pWB9   d   W$,          VR&   MRP                  V P                  VR7      W$&   VP                  \        WAR7      4       Vx € K¹  	  R# 5i)zoInspect a module object and yielding results from `inspect_function()`
for each function object in the module.
NÚ_)ÚmoduleÚnameÚobjÚaliasz{module}.{name})r&   r'   )r   )ÚdirÚ
startswithÚgetattrÚpytypesÚFunctionTypeÚBuiltinFunctionTypeÚ
isinstanceÚdictÚformatÚ__name__Úupdater#   )r&   r   r)   r'   r(   Úsupported_typesr    s   &&&    r   Úinspect_moduler6   M   s³   é € ð ’-‰B U€Eä�F–ˆØ�?‰?˜3×ÒáÜ�fÓ#ˆÜ"×/Ñ/´×1LÑ1LÐMˆä˜#×/Ò/áä˜6°#Ô6ˆØŒ<Ø!�JˆD�ŠMà*×1Ñ1¸¿¹Ø7;ð 2ó =ˆE‰Jà�‰Ô$ SÔ8Ô9ØŒ
ó% ùs   ‚CCc                   óV   a € ] tR t^ht o RtR t]R 4       t]R 4       tR t	R t
RtV tR# )	Ú_Statz9For gathering simple statistic of (un)supported functionsc                ó"   € ^ V n         ^ V n        R# ©é    N©Ú	supportedÚunsupported©Úselfs   &r   Ú__init__Ú_Stat.__init__j   s   € ØˆŒØˆÖr   c                ó@   € V P                   V P                  ,           pV# ©Nr<   )r@   Útotals   & r   rE   Ú_Stat.totaln   s   € à—‘ ×!1Ñ!1Õ1ˆØˆr   c                óN   € V P                   V P                  ,          ^d,          pV# )éd   )r=   rE   )r@   Úratios   & r   rI   Ú_Stat.ratios   s   € à—‘ §¡Õ+¨cÕ1ˆØˆr   c                óŒ   € V P                   ^ 8X  d   R# RP                  V P                  V P                   V P                  R7      # )r;   Úemptyz0supported = {supported} / {total} = {ratio:.2f}%)r=   rE   rI   )rE   r2   r=   rI   r?   s   &r   ÚdescribeÚ_Stat.describex   s>   € Ø�:‰:˜Œ?ÙØA×HÑHØ—n‘nØ—*‘*Ø—*‘*ð Ió 
ð 	
r   c                ól   € R P                  V P                  P                  V P                  4       R7      # )z{clsname}({describe}))ÚclsnamerM   )r2   Ú	__class__r3   rM   r?   s   &r   Ú__repr__Ú_Stat.__repr__�   s0   € Ø&×-Ñ-Ø—N‘N×+Ñ+Ø—]‘]“_ð .ó 
ð 	
r   r<   N)r3   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__rA   ÚpropertyrE   rI   rM   rR   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r8   r8   h   sD   ø‡ € ÙCòð ñó ðð ñó ðò
÷
ð 
r   r8   c                 óˆ   € \         ;QJ d&    R  V  4       F  '       g   K   R'       * # 	  R'       * # ! R  V  4       4      '       * # )c              3   óB   "  € T F  qP                  R 4      x € K  	  R# 5i)r%   N)r+   ©Ú.0Úxs   & r   Ú	<genexpr>Ú(filter_private_module.<locals>.<genexpr>‰   s   é € Ð@Ñ.?¨—<‘< ×$Ð$Ó.?ùs   ‚TF©Úany©Úmodule_componentss   &r   Úfilter_private_modulerh   ˆ   s6   € ß‹sÑ@Ñ.?Ó@�sŒsÔ@Ð@ŠsÔ@Ð@ˆsÑ@Ñ.?Ó@Ó@Ô@Ð@r   c                 óˆ   € \         ;QJ d&    R  V  4       F  '       g   K   R'       * # 	  R'       * # ! R  V  4       4      '       * # )c              3   ó*   "  € T F	  qR 8H  x € K  	  R# 5i)ÚtestsN© r_   s   & r   rb   Ú&filter_tests_module.<locals>.<genexpr>�   s   é € Ð;Ñ): A˜–<Ó):ùs   ‚TFrd   rf   s   &r   Úfilter_tests_modulern   Œ   s6   € ß‹sÑ;Ñ):Ó;�sŒsÔ;Ð;ŠsÔ;Ð;ˆsÑ;Ñ):Ó;Ó;Ô;Ð;r   c              #  ó‚  a"  € R pV P                   R,           p\        P                  ! V P                  VVR7      pV3R lpV P                   pV! V4      '       g   V x € V F”  pV^,          pV! V4      '       d   K  \	        4       ;_uu_ 4         \        V4      pTP                  R4      R,           F  p	 \        Y‰4      pK  	  RRR4       \        X\        P                  4      '       g   K�  Tx € K–  	  R#   \         d     RRR4       K°  i ; i  \         d    Rp  K_  i ; i  + '       g   i     Lk; i5i)zKYield all modules in a given package.

Recursively walks the package tree.
c                 ó   € R # rD   rl   )r%   s   &r   Ú<lambda>Ú)list_modules_in_package.<locals>.<lambda>›   s   € ™tr   Ú.)Úonerrorc                 óœ   <a€ V P                  R 4      o\        ;QJ d    V3R lS 4       F  '       g   K   R# 	  R# ! V3R lS 4       4      # )rs   c              3   ó>   <"  € T F  pV! S4      '       * x € K  	  R # 5irD   rl   )r`   Ú	filter_fnrg   s   & €r   rb   Ú@list_modules_in_package.<locals>.check_filter.<locals>.<genexpr>¦   s$   øé € ð 4Ù$2�yñ !Ð!2Ó3×3Ñ3Û$2ùs   ƒTF)Úsplitre   )Úmodnamerg   Úmodule_filterss   &@€r   Úcheck_filterÚ-list_modules_in_package.<locals>.check_filter¤   sM   ù€ Ø#ŸM™M¨#Ó.Ðß‹sô 4Ù$2ó4�sŒsð 	4Šsð 	4ˆsô 4Ù$2ó4ó 4ð 	4r   N:é   NN)r3   ÚpkgutilÚwalk_packagesÚ__path__r   Ú
__import__Ú	Exceptionry   r,   r   r0   r-   Ú
ModuleType)
Úpackager{   Úonerror_ignoreÚprefixÚpackage_walkerr|   rz   ÚpkginfoÚmodÚparts
   &f        r   Úlist_modules_in_packagerŒ   –   s!  øé € ñ
 $€Nà×Ñ Õ#€FÜ×*Ò*Ø×ÑØØô€Nõ4ð
 ×Ñ€GÙ˜× Ò ØŠã!ˆØ˜!•*ˆÙ˜× Ò Ùä×Õðä  Ó)�ð
  Ÿ™ cÓ*¨2×.Ð.�ðÜ! #Ó,’Cñ /÷ ô" ˜#œw×1Ñ1×2Ò2áàŒ	ó5 "øô ô Ø÷ Ñðûô &ô à�CÛðú÷ ×üsl   ƒBD?ÂD,ÂC=ÂD,Â:DÃD,Ã	4D?Ã=D	ÄD,Ä	
D?ÄD	ÄD,ÄD)Ä$D,Ä(D)Ä)D,Ä,D<Ä7D?c                   ó0   a € ] tR t^Êt o RtR tR tRtV tR# )Ú	FormatterzBase class for formatters.
    c                ó   € Wn         R # rD   ©Ú_fileobj)r@   Úfileobjs   &&r   rA   ÚFormatter.__init__Í   s   € ØŽr   c                óT   € VP                  R V P                  4       \        V/ VB  R# )ÚfileN)Ú
setdefaultr‘   Úprint)r@   ÚargsÚkwargss   &*,r   r—   ÚFormatter.printÐ   s#   € Ø×Ñ˜& $§-¡-Ô0ÜˆtÐ�vÔr   r�   N)	r3   rT   rU   rV   rW   rA   r—   rY   rZ   r[   s   @r   rŽ   rŽ   Ê   s   ø‡ € ñò ÷ð r   rŽ   c                   óN   a € ] tR t^Õt o RtR tR tR tR tR t	R t
R tR	tV tR
# )ÚHTMLFormatterz Formatter that outputs HTML
    c                ó,   € ^ RI pVP                  V4      # r:   )ÚhtmlÚescape)r@   Útextrž   s   && r   rŸ   ÚHTMLFormatter.escapeÙ   s   € ÛØ�{‰{˜4Ó Ð r   c                ó,   € V P                  R VR4       R# )z<h1>ú</h2>N©r—   ©r@   r    s   &&r   ÚtitleÚHTMLFormatter.titleÝ   s   € Ø�
‰
�6˜4 Ö)r   c                óN   € V P                  R VR4       V P                  R4       R# )z<h2>r£   ú<ul>Nr¤   ©r@   rz   s   &&r   Úbegin_module_sectionÚ"HTMLFormatter.begin_module_sectionà   s   € Ø�
‰
�6˜7 GÔ,Ø�
‰
�6Ör   c                ó(   € V P                  R 4       R# )ú</ul>Nr¤   r?   s   &r   Úend_module_sectionÚ HTMLFormatter.end_module_sectionä   s   € Ø�
‰
�7Ör   c                ó¸  € V P                  R 4       V P                  RP                  VV4      4       V P                  RP                  V4      4       V P                  RVR4       V P                  R4       VP                  4        EF,  w  rxV'       dÖ   V P                  R 4       VR,          p	VR,          p
VR,          pVR	,          pV P                  R
P                  V P                  V	4      V P                  V
4      V P                  V4      V^ ,          V^,          4      4       T P                  RP                  T P                  VR,          ;'       g    R4      4      4       M8V P                  RP                  V P                  \	        V4      4      4      4       V P                  R4       EK/  	  V P                  R4       V P                  R4       R# )ú<li>z{}.<b>{}</b>z: <b>{}</b>z
<div><pre>z</pre></div>r©   r'   ÚsigÚfilenameÚlinesz)<p>defined by <b>{}</b>{} at {}:{}-{}</p>ú	<p>{}</p>Ú	docstringÚ z<li>{}ú</li>r®   N)r—   r2   ÚitemsrŸ   Ústr)r@   rz   ÚitemnameÚtypenamer   Úsourcesr)   ÚtclsÚsourceÚimplr³   r´   rµ   s   &&&&&&&      r   Úwrite_supported_itemÚ"HTMLFormatter.write_supported_itemç   so  € à�
‰
�6ÔØ�
‰
�>×(Ñ(ØØó
ô 	ð 	�
‰
�=×'Ñ'¨Ó1Ô2Ø�
‰
�< ¨NÔ;à�
‰
�6ÔØ#ŸM™MŸO‰LˆDßØ—
‘
˜6Ô"Ø˜f•~�Ø˜U•m�Ø! *Õ-�Ø˜w��Ø—
‘
Ø?×FÑFØŸ™ DÓ)¨4¯;©;°sÓ+;ØŸ™ HÓ-¨u°Q­x¸¸q½óôð —
‘
˜;×-Ñ-Ø—K‘K  {Õ 3× 9Ð 9°rÓ:óõ ð —
‘
˜8Ÿ?™?¨4¯;©;´s¸4³yÓ+AÓBÔCØ�J‰J�w×ñ% ,ð& 	�
‰
�7ÔØ�
‰
�7Ör   c                óŒ   € V P                  R 4       V P                  RP                  VV4      4       V P                  R4       R# )r²   z{}.<b>{}</b>: UNSUPPORTEDr¹   N)r—   r2   ©r@   rz   r¼   s   &&&r   Úwrite_unsupported_itemÚ$HTMLFormatter.write_unsupported_item  s<   € Ø�
‰
�6ÔØ�
‰
Ð.×5Ñ5ØØó
ô 	ð 	�
‰
�7Ör   c                ób   € V P                  R P                  VP                  4       4      4       R# )r¶   N)r—   r2   rM   )r@   Ústatss   &&r   Úwrite_statisticÚHTMLFormatter.write_statistic  s    € Ø�
‰
�;×%Ñ% e§n¡nÓ&6Ó7Ö8r   rl   N©r3   rT   rU   rV   rW   rŸ   r¦   r«   r¯   rÂ   rÆ   rÊ   rY   rZ   r[   s   @r   rœ   rœ   Õ   s3   ø‡ € ñò!ò*òòòòB÷9ð 9r   rœ   c                   óN   a € ] tR tRt o RtR tR tR tR tR t	R t
R	 tR
tV tR# )ÚReSTFormatteri  zDFormatter that output ReSTructured text format for Sphinx docs.
    c                ó   € V# rD   rl   r¥   s   &&r   rŸ   ÚReSTFormatter.escape  s   € Øˆr   c                óŠ   € V P                  V4       V P                  R \        V4      ,          4       V P                  4        R# )Ú=N©r—   Úlenr¥   s   &&r   r¦   ÚReSTFormatter.title  s+   € Ø�
‰
�4ÔØ�
‰
�3œ˜T›•?Ô#Ø�
‰
Žr   c                óŠ   € V P                  V4       V P                  R \        V4      ,          4       V P                  4        R# )Ú-NrÓ   rª   s   &&r   r«   Ú"ReSTFormatter.begin_module_section  s,   € Ø�
‰
�7ÔØ�
‰
�3œ˜W›Õ%Ô&Ø�
‰
Žr   c                ó&   € V P                  4        R # rD   r¤   r?   s   &r   r¯   Ú ReSTFormatter.end_module_section$  s   € Ø�
‰
Žr   c                ó°  € V P                  R P                  W4      4       V P                  R4       V P                  4        V'       d!   V P                  RP                  V4      4       V P                  4        VP                  4        F¸  w  rxV'       dƒ   VR,          p	VR,          p
VR,          pVR,          p\        P                  \        VV^ ,          V^,          R7      pV P                  RP                  WšW¼^ ,          V^,          V4      4       K�  V P                  R	P                  \        V4      4      4       Kº  	  V P                  4        R
# )z.. function:: {}.{}z   :noindex:z   Alias to: ``{}``r'   r³   r´   rµ   )ÚcommitÚpathÚ	firstlineÚlastlinez,   - defined by ``{}{}`` at `{}:{}-{} <{}>`_z   - defined by ``{}``N)r—   r2   rº   Ú
github_urlrÜ   r»   )r@   rz   r¼   r½   r   r¾   r)   r¿   rÀ   rÁ   r³   r´   rµ   Úsource_links   &&&&&&&       r   rÂ   Ú"ReSTFormatter.write_supported_item'  s  € à�
‰
Ð(×/Ñ/°ÓBÔCØ�
‰
�>Ô"Ø�
‰
ŒçØ�J‰JÐ,×3Ñ3°EÓ:Ô;Ø�
‰
Œà#ŸM™MžO‰LˆDßØ˜f•~�Ø˜U•m�Ø! *Õ-�Ø˜w��Ü(×/Ñ/Ü!Ø!Ø# A�hØ" 1�Xð	 0ó �ð —
‘
ØB×IÑIØ 8°1­X°u¸QµxÀóöð —
‘
Ð3×:Ñ:¼3¸t»9ÓEÖFñ' ,ð( 	�
‰
Žr   c                ó   € R # rD   rl   rÅ   s   &&&r   rÆ   Ú$ReSTFormatter.write_unsupported_itemG  s   € Ùr   c                ó"  € VP                   ^ 8X  d   V P                  R4       M[RpV P                  VP                  VP                  4      4       V P                  4        V P                  VP	                  4       4       V P                  4        R# )r;   zThis module is not supported.z%Not showing {} unsupported functions.N)r=   r—   r2   r>   rM   )r@   ÚstatÚmsgs   && r   rÊ   ÚReSTFormatter.write_statisticJ  s_   € Ø�>‰>˜QÔØ�J‰JÐ6Õ7à9ˆCØ�J‰J�s—z‘z $×"2Ñ"2Ó3Ô4Ø�J‰JŒLØ�J‰J�t—}‘}“Ô'Ø�
‰
Žr   rl   NrÌ   r[   s   @r   rÎ   rÎ     s3   ø‡ € ñòòò
ò
òò@÷ð r   rÎ   c                óp  € V P                  RP                  V4      4       / pV EFŒ  p\        4       pVP                  pV P	                  V P                  V4      4       \        WSVR7       EF  pVR,          p	V	e­   V;P                  ^,          un        V P                  V P                  VR,          P                  4      V P                  VR,          4      V P                  \        V	4      4      V P                  VR,          4      VR,          VP                  R	4      R
7       K½  V;P                  ^,          un        V P                  V P                  VR,          P                  4      V P                  VR,          4      R7       EK"  	  V P                  V4       V P                  4        EK�  	  R# )zFormat modules.
    zListings for {})r   r)   r   Nr&   r'   r   r   r)   )rz   r¼   r½   r   r¾   r)   )rz   r¼   )r¦   r2   r8   r3   r«   rŸ   r6   r=   rÂ   r»   Úgetr>   rÆ   rÊ   r¯   )
Ú	formatterÚpackage_nameÚmod_sequencer   Ú	alias_maprŠ   ræ   rz   r    Únbtypes
   &&&&      r   Ú_format_module_infosrð   U  si  € ð ‡O�OÐ%×,Ñ,¨\Ó:Ô;Ø€IÜˆÜ‹wˆØ—,‘,ˆØ×&Ñ& y×'7Ñ'7¸Ó'@ÔAÜ" 3¸Y×GÐGˆDØ˜,Õ'ˆFØÒ!Ø—’ !Õ#•Ø×.Ñ.Ø%×,Ñ,¨T°(­^×-DÑ-DÓEØ&×-Ñ-¨d°6­lÓ;Ø&×-Ñ-¬c°&«kÓ:Ø'×.Ñ.¨t°KÕ/@ÓAØ  Õ0ØŸ(™( 7Ó+ð /ö ð × Ò  AÕ%Õ Ø×0Ñ0Ø%×,Ñ,¨T°(­^×-DÑ-DÓEØ&×-Ñ-¨d°6­lÓ;ð 1÷ ñ Hð( 	×!Ñ! $Ô'Ø×$Ñ$×&ó3 r   c                óò  € \        V 4      p\        VR4      '       d   \        V4      pMV.pVR8X  d?   \        VR,           R4      ;_uu_ 4       p\	        VR7      p\        W`V4       RRR4       R# VR8X  d?   \        VR,           R4      ;_uu_ 4       p\        VR7      p\        W`V4       RRR4       R# \        R	P                  V4      4      h  + '       g   i     R# ; i  + '       g   i     R# ; i)
zéWrite listing information into a file.

Parameters
----------
package_name : str
    Name of the package to inspect.
filename : str
    Output filename. Always overwrite.
output_format : str
    Support formats are "html" and "rst".
r�   rž   z.htmlÚw)r’   NÚrstz.rstz#Output format '{}' is not supported)	r‚   ÚhasattrrŒ   Úopenrœ   rð   rÎ   r   r2   )rì   r´   Úoutput_formatr…   ÚmodsÚfoutÚfmtrs   &&&    r   Úwrite_listingsrú   v  sÕ   € ô ˜Ó&€GÜˆw˜
×#Ò#Ü& wÓ/‰àˆyˆà˜ÔÜ�(˜WÕ$ c×*Ô*¨dÜ ¨Ô.ˆDÜ  °TÔ:÷ +Ñ*ð 
˜%Ô	Ü�(˜VÕ# S×)Ô)¨TÜ ¨Ô.ˆDÜ  °TÔ:÷ *Ñ)ô Ø1×8Ñ8¸ÓGóIð 	I÷ +×*Ð*ú÷ *×)Ð)ús   ÁCÂC%ÃC"	Ã%C6	z6
Inspect Numba support for a given top-level package.
c                  óB  € \         P                  ! \        R 7      p V P                  RR\        RR7       V P                  RRRRR7       V P                  R	R
RRR7       V P                  4       pVP                  pVP                  pVP                  p\        W$V4       R# ))Údescriptionr…   zPackage to inspect)ÚmetavarÚtypeÚhelpz--formatr2   rž   z!Output format; i.e. "html", "rst")ÚdestÚdefaultrÿ   z--filer•   Úinspector_outputz8Output filename. Defaults to "inspector_output.<format>"N)
ÚargparseÚArgumentParserÚprogram_descriptionÚadd_argumentr»   Ú
parse_argsr…   r2   r•   rú   )Úparserr˜   rì   rö   r´   s        r   r   r   š  s¤   € Ü×$Ò$Ô1DÔE€FØ
×ÑØ˜9¬3Ø!ð ô ð ×ÑØ˜¨6Ø0ð ô ð ×ÑØ�vÐ'9ØGð ô ð
 ×ÑÓ€DØ—<‘<€LØ—K‘K€MØ�y‰y€HÜ�<¨=Ö9r   Ú__main__rD   )NN)"rW   r  r   r	   Útypesr-   Ú
numba.corer   Únumba._versionr   Únumba.core.registryr   Únumba.tests.supportr   r   rÜ   rà   r#   r6   Úobjectr8   rh   rn   Ú_default_module_filtersrŒ   rŽ   rœ   rÎ   rð   rú   Ústripr  r   r3   rl   r   r   Ú<module>r     sÒ   ðñó Û Û Û å Ý 'Ý *Ý /òñ 
‹€Ø[€
ô(ôVô6
ˆFô 
ò@Aò<ð
 ØðÐ ð 5Lô 1ôh�ô ô<9�Iô <9ô~>�Iô >ôB'òBIð>ç	�EƒGð ò
:ð, ˆzÔÙ†Fñ r   