+
    &j4                         ^ RI t ^ RIt^ RIt^ RIHt ^ RIHtHt ^ RIH	t	 ^ RI
Ht RR R lltR R	 lt ! R
 R]4      t]P                  R 4       tR t ! R R]4      tR tR# )    N)dedent)Any
NamedTuple)ErrorReport)SourceRangeFactoryc          
          V ^8  d   QhR\         R\        R,          R\        \        \        ,          \        \        R,          3,          /# )   obj	error_msgNreturn)r   strtuplelistint)formats   "f/Users/jameslopez/projects/CWCArchive/cwc-podcast/.venv/lib/python3.14/site-packages/torch/_sources.py__annotate__r      s>     . .	.Tz. 49c3:%&.    c                    Rp \         P                  ! V 4      p\         P                  ! V 4      w  r4Y4T3#   \         d0   pRT  R2pT'       d   TRT,           ,          p\        T4      ThRp?ii ; i)zo
Wrapper around inspect.getsourcelines and inspect.getsourcefile.

Returns: (sourcelines, file_lino, filename)
NzCan't get source for zs. TorchScript requires source access in order to carry out compilation, make sure original .py files are available.
)inspectgetsourcefilegetsourcelinesOSError)r
   r   filenamesourcelinesfile_linenoemsgs   &&     r   get_source_lines_and_filer       s     H"((-#*#9#9##>  X--  "#C5 )  	
 4)##Ccl!"s   .6 A0*A++A0c                \    V ^8  d   QhR\         \        ,          R\         \        ,          /# )r	   r   r   )r   r   )r   s   "r   r   r   &   s"     ,+ ,+S	 ,+d3i ,+r   c                   R pRp\        V 4       F.  w  r4VP                  4       P                  R4      '       g   K,  Tp M	  Vf   V # W,          pVP                  R4      ^ ,          pV RV  Uu. uF  qvV! Wv4      ,           NK  	  ppW^,           R  Uu. uF  qvV! Wv4      ,           NK  	  p	pVP	                  V4       W,           # u upi u upi )a   
    This helper function accepts a list of source lines. It finds the
    indentation level of the function definition (`def`), then it indents
    all lines in the function body to a point at or greater than that
    level. This allows for comments and continued string literals that
    are at a lower indentation than the rest of the code.
    Args:
        sourcelines: function source code, separated into lines by
                        the '
' character
    Returns:
        A list of source lines that have been correctly aligned
    c                 N    Y P                  V4      ;'       d    \        V4      R  # N)
startswithlen)textprefixs   &&r   remove_prefix-normalize_source_lines.<locals>.remove_prefix4   s#    OOF+;;F=>>r   Ndef)	enumeratelstripr%   splitappend)
r   r)   idxilfn_def
whitespacesaligned_prefixaligned_suffixs
   &         r   normalize_source_linesr8   &   s    ? C+&88:  ''C ' { Fe$Q'J <Gt;L;La]1111;L   <GQwy;Q;Qa]1111;Q  
 &!**s   0CCc                   6   a a ] tR t^Wt oRV 3R lltRtVtV ;t# )SourceContextc                L   < \         SV `  WW44       WPn        W n        W`n        R # r$   )super__init__uses_true_divisionr   funcname)selfsourcer   r   leading_whitespace_lenr>   r?   	__class__s   &&&&&&&r   r=   SourceContext.__init__X   s$     	;O"4  r   )r   r?   r>   )TN)__name__
__module____qualname____firstlineno__r=   __static_attributes____classdictcell____classcell__)rC   __classdict__s   @@r   r:   r:   W   s     ! !r   r:   c                      \        V !  # r$   )r:   )argss   *r   make_source_contextrO   g   s    $r   c                  >    \        R R^ ^ 4      P                  ^ ^4      # ) N)r:   make_raw_range r   r   
fake_rangerT   l   s     T1a(771==r   c                   ,   a  ] tR t^pt o V 3R ltRtV tR# )	ParsedDefc                x   < V ^8  d   Qh/ S[ P                  ;R&   S[;R&   S[;R&   S[R,          ;R&   S[;R&   # )r	   astctxrA   Nr   r   )rX   Moduler:   r   r   )r   rL   s   "r   r   ParsedDef.__annotate__p   sH     	O 	  K  Dj	 
  r   rS   N)rE   rF   rG   rH   __annotate_func__rI   rJ   )rL   s   @r   rV   rV   p   s      r   rV   c                 T   \        V \        P                  ! 4       4      w  rp\        V4      pR P	                  V4      p\        V4      p\        P                  ! V4      p\        VP                  4      ^8w  g2   \        VP                  ^ ,          \        P                  4      '       g   \        RV RV 24      h\        VP                  R^4      ^ ,          4      \        VP                  R^4      ^ ,          4      ,
          p\        WCW'RV P                  4      p\!        WhWCV4      # )rQ   z&Expected a single top-level function: :r   T)r    r   
call_stackr8   joinr   rX   parser&   body
isinstanceFunctionDefRuntimeErrorr.   rO   rE   rV   )	fnr   r   r   rA   
dedent_srcpy_astrB   rY   s	   &        r   	parse_defri   x   s    )B
K""$*&Kh )5KWW[!FJYYz"F
6;;1Jv{{1~s$O$O4XJa}M
 	
 !dA!6q!9:Sq!!$>  +tR[[C V&K@@r   r$   )rX   	functoolsr   textwrapr   typingr   r   torch._Cr   torch._C._jit_tree_viewsr   r    r8   r:   cacherO   rT   rV   ri   rS   r   r   <module>rp      sa    
    "   7.4,+b!& !     >
 Ar   