+
    &j>G                        ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIH	t	 ^ RI
t
^ RIHtHtHtHtHtHtHtHtHtHtHtHtHtHtHtHtHtHtHtHtH t  ^ RI!H"t"H#t#H$t$H%t%H&t&H't'H(t(H)t)H*t*H+t+H,t,H-t-H.t.H/t/H0t0H1t1H2t2H3t3H4t4H5t5 ^ RI6H7t7 ^RI8H9t9 ]
Pt                  Pv                  Py                  4       '       d   ^ RIH=t= ^ RI!H>t>H?t? ^ R	I@HAtA  ! R
 R4      tB ! R R4      tCR tDR tER tFR tGR R ltHR tIR tJR tKR tLR tMR R ltNR R ltOR R ltPR?R ltQR?R  ltR. R!NR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR,NR-NR.NR/NR0NR1NR2NR3NR4NR5NRNR6NR7NR8NR9NR:NR;NR<NR=NR>NtSR# )@    N)dedent)_GeneratorTypeAnyType	AwaitTypeBoolTypeComplexTypeDeviceObjTypeDictTypeEnumType	FloatType
FutureTypeInterfaceTypeIntTypeListTypeNoneType
NumberTypeOptionalTypeStreamObjType
StringType
TensorType	TupleType	UnionType)_Await_qualified_nameAnyBroadcastingList1BroadcastingList2BroadcastingList3DictFutureis_awaitis_dict	is_futureis_ignored_fnis_listis_optionalis_tupleis_unionListOptionalTupleUnion)get_source_lines_and_file)_get_script_class)RRefType)is_rrefRRef)OpOverloadPacketc                   8   a  ] tR t^Ft o V 3R lR ltR tRtV tR# )Modulec                   < V ^8  d   QhRR/#    returnN )format__classdict__s   "m/Users/jameslopez/projects/CWCArchive/cwc-podcast/.venv/lib/python3.14/site-packages/torch/jit/annotations.py__annotate__Module.__annotate__G   s           c                    Wn         W n        R # N)namemembers)selfrB   rC   s   &&&r<   __init__Module.__init__G   s    	r?   c                     V P                   V,          #   \         d    \        R T P                   RT 24      Rhi ; i)zModule z has no member called N)rC   KeyErrorRuntimeErrorrB   rD   rB   s   &&r<   __getattr__Module.__getattr__K   sJ    	<<%% 	$))$:4&A	s    (=)rC   rB   N)__name__
__module____qualname____firstlineno__rE   rK   __static_attributes____classdictcell__r;   s   @r<   r4   r4   F   s       r?   r4   c                      a  ] tR t^Tt o R]! RR]P                  /4      R]P                  R]! RR]/4      R]R]R]	R]
R]R	]R
]/
tV 3R lR ltR tRtV tR# )EvalEnvtorchTensortypingr+   r)   r   r*   r,   r    Awaitc                   < V ^8  d   QhRR/# r6   r9   )r:   r;   s   "r<   r=   EvalEnv.__annotate__b   s     $ $t $r?   c                    Wn         \        P                  P                  P	                  4       '       d   \
        V P                  R &   R# R# )r1   N)rcbrV   distributedrpcis_availabler1   env)rD   r]   s   &&r<   rE   EvalEnv.__init__b   s5      --//#DHHV 0r?   c                    WP                   9   d   V P                   V,          # V P                  e   V P                  V4      # \        \        VR 4      # rA   )ra   r]   getattrbuiltinsrJ   s   &&r<   __getitem__EvalEnv.__getitem__h   sA    8888D>!8888D>!xt,,r?   )r]   N)rM   rN   rO   rP   r4   rV   rW   r+   r)   r   r*   r,   r    r   ra   rE   rf   rQ   rR   rS   s   @r<   rU   rU   T   sr     (ELL!9:%,,&GU#34H&C$ $- -r?   rU   c                 j   \        V \        4      '       d   \        V P                  V4      pM\        W4      pVe   V'       d   Vw  rVVR,          pWV3pVfJ   R R r \	        RP                  \        V 4      ^ ,          4      4      p\        V4      pVe   \        WqV4      pV#   \         d     Li ; i)N:   NN )

isinstancer2   try_real_annotationsopr   joinr-   get_type_line	TypeErrorparse_type_line)	fnr]   loc	is_method	signatureparam_typesreturn_type	type_linesources	   &&&&     r<   get_signaturerz   p   s    "&''(4	(1	
 $- !"o .	 $6	BGG$=b$A!$DEFF%f-I
  '	<I  		s   5B$ $B21B2c                 j    \         P                  ! V 4      ;'       g    \         P                  ! V 4      # rA   )inspect
isfunctionismethodthe_callables   &r<   is_function_or_methodr      s(     l+MMw/?/?/MMr?   c                     \        V 4      '       g   \        V 4      '       d   V P                  p \        V 4      '       d#   \        P                  ! V 4      P
                  R J# R# )NF)r   callable__call__r|   getfullargspecvarargsr   s   &r<   	is_varargr      sN     ..8L3I3I $,,\**%%l3;;4GGr?   c                    \        V \        4      '       d   V P                  p \        V 4      '       g9   \	        V 4      '       d(   \        V P
                  4      '       d   V P
                  p \        V 4      '       dH   \        V 4      '       d   \        P                  ! V 4      p \        P                  ! V 4      P                  # \        V4       Uu. uF  p\        V4      NK  	  up# u upi rA   )rk   r2   rm   r   r   r   r$   r|   unwrapr   argsrangestr)rr   n_argsis   && r<   get_param_namesr      s    "&''UU ""%%RLL!"++.. [[R  #B%%b)... !&f.1A...s   C(c                    V ^8  d   QhRR/# r6   r9   )r:   s   "r<   r=   r=      s     
 
 
r?   c                     \        R P                  \        V 4      ^ ,          4      4      pTf   R# \
        P                  ! T4      p\        TP                  4      ^8X  d{   \        TP                  ^ ,          \
        P                  4      '       dJ   \        P                  P                  P                  TRTP                  ^ ,          P                   R24      h\        TP                  4      ^8w  g2   \        TP                  ^ ,          \
        P                   4      '       g+   \        P                  P                  P                  TR4      hR#   \        \        3 d     R# i ; i)rj   NzCannot instantiate class 'z' in a script functionz$Expected a single top-level function)r   rn   r-   OSErrorrp   astparselenbodyrk   ClassDefrV   jitfrontendFrontendErrorrB   FunctionDef)rr   rs   ry   py_asts   &&  r<   check_fnr      s    9" =a @AB ~YYvF
6;;1FKKNCLL!I!Iii  ..(Q)<)<(==ST
 	
 6;;1Jv{{1~s$O$Oii  ..7
 	
 %P Y s   *E E('E(c                    \        V RRR7      p\        P                  ! V4       F#  pRVP                  9   g   K  \	        RV  R24      h	  \        W1V4      # )zLEvaluate statement as long as it does not contain any method/function calls.rj   eval)modeCALLz/Type annotation should not contain calls, but 'z' does)compiledisget_instructionsopnamerI   r   )stmtglobrs   bytecodeinsns   &&&  r<   _eval_no_callr      sY    tRf-H$$X.T[[ A$vN  /
 $$r?   c                   \        V 4      w  r4 \        V/ \        V4      4      p\        T\        4      '       g   T3p \        T/ \        T4      4      pT Uu. uF  p\        Y4      NK  	  p	pT	\        Yr4      3#   \        \        3 d   p\        R4      ThRp?ii ; i  \        \        3 d   p\        R4      ThRp?ii ; iu upi )zParse a type annotation specified as a comment.

Example inputs:
    # type: (Tensor, torch.Tensor) -> Tuple[Tensor]
    # type: (Tensor, Tuple[Tensor, Tensor]) -> Tensor
z6Failed to parse the argument list of a type annotationNz4Failed to parse the return type of a type annotation)	split_type_liner   rU   	NameErrorSyntaxErrorrI   rk   tupleann_to_type)
rx   r]   rs   arg_ann_strret_ann_strarg_anneret_annann	arg_typess
   &&&       r<   rq   rq      s      /y9KR> gu%%*R> 3::'3S&'I:k'///! {# D
	 {# B
	
 ;s4   A< B! C<BBB!C2B>>Cc           
       aaa RoV P                  R4      p\        \        V4      4      p\        \        V3R lV4      4      p\        P
                  ! R4      o\        \        V3R lV4      4      p\        V4      ^ 8X  d   \        P
                  ! R4      o\        \        V3R lV4      4      p\        V4      ^ 8  d?   \        R\        V^ ,          ^ ,          4      ,           R	,           R
,           R,           4      hR# \        V4      ^8X  d   V^ ,          ^,          P                  4       # Rp. pV F+  w  rgRV9   d   Wg3p MSV9   g   K  VP                  V4       K-  	  Vf?   \        RRP                  V Uu. uF  qw^,          NK  	  up4      ,           R,           4      hV3R lp\        W4      p	RP                  V	4      p
V^,          P                  RV
4      # u upi )zCTry to find the line containing a comment with the type annotation.# type:
c                    < SV ^,          9   # ri   r9   )linetype_comments   &r<   <lambda>get_type_line.<locals>.<lambda>   s    ,$q'*Ar?   z!# type:\ ignore(\[[a-zA-Z-]+\])?$c                 >   < SP                  V ^,          4      '       * # r   search)r   type_patterns   &r<   r   r     s    l.A.A$q'.J*Jr?   z&#[	 ]*type[	 ]*(?!: ignore(\[.*\])?$):c                 4   < SP                  V ^,          4      # r   r   )r   wrong_type_patterns   &r<   r   r     s     2 9 9$q' Br?   zThe annotation prefix in line z* is probably invalid.
It must be '# type:'zl
See PEP 484 (https://www.python.org/dev/peps/pep-0484/#suggested-syntax-for-python-2-7-and-straddling-code)z
for examplesNz# type: (...) -> z_Return type line '# type: (...) -> ...' not found on multiline type annotation
for type lines:
zl
(See PEP 484 https://www.python.org/dev/peps/pep-0484/#suggested-syntax-for-python-2-7-and-straddling-code)c                 j   < W P                  S4      \        S4      ,           R  pVP                  4       # rA   )findr   strip)r   	item_typer   s   & r<   get_parameter_type)get_type_line.<locals>.get_parameter_type,  s.    <03|3DDFG	  r?   z, z...)splitlist	enumeratefilterrer   r   rI   r   r   appendrn   mapreplace)ry   lines
type_lineswrong_type_linesreturn_lineparameter_type_linesline_numr   r   typesparameter_typesr   r   r   s   &          @@@r<   ro   ro      s   LLLE5!"EfA5IJJ ::DELfJJWXJ
:!ZZ(TUBEJ
  1$0&q)!,-.?@ BB #	#  	ZA	!}Q%%'' K$$&#*KT! ''- % 1iiZ8ZTaZ89: ~~
 	
! "9Eii&Oq>!!%99 9s   >G"c                    \        R4      p V P                  R4      pYT P	                  4       Y^,           R P	                  4       3#   \         d    \        R4      Rhi ; i)a  Split the comment with the type annotation into parts for argument and return types.

For example, for an input of:
    # type: (Tensor, torch.Tensor) -> Tuple[Tensor, Tensor]

This function will return:
    ("(Tensor, torch.Tensor)", "Tuple[Tensor, Tensor]")

r   z->z4Syntax error in type annotation (couldn't find `->`)N)r   index
ValueErrorrI   r   )rx   start_offset	arrow_poss   &  r<   r   r   6  sq     y>LOOD)	
 ),224iA6P6V6V6XXX	  B
	s   A	 	A!c                $  a  \         P                  ! V 4      oSP                  .SP                  P                  4        Uu. uF  q"P                  NK  	  up,           p\        ;QJ d    T3R lT 4       F  '       d   K   RM	  RM! T3R lT 4       4      '       d   R# SP                  P                  4        Uu. uF  p\        TP                  T4      NK  	  pp\        SP                  T4      pYE3#   \         d     R# i ; iu upi u upi )z8Try to use the Py3.5+ annotation syntax to get the type.Nc              3   >   <"   T F  qSP                   J x  K  	  R # 5irA   )empty).0r   sigs   & r<   	<genexpr>'try_real_annotations.<locals>.<genexpr>W  s     
2z#))zs   FT)	r|   ru   r   return_annotation
parametersvalues
annotationallr   )rr   rs   p
all_annotsr   rw   r   s   &&    @r<   rl   rl   J  s     # ''(!nn335,55, J s
2z
2sss
2z
2229<9N9N9PQ9PAQ\\3/9PIQc33S9K!!  , Rs   C6 D<D6DDc                N    V ^8  d   QhR\         \        P                  ,          /# )r7   r   )typeenumEnum)r:   s   "r<   r=   r=   a  s      4		? r?   c                 f   \        V 4      pV'       g   \        R V P                   R24      hV Uu0 uF  p\        VP                  4      kK  	  ppV Uu. uF  p\        WQ4      NK  	  pp\        P                  P                  V4      pV'       g   \        P                  ! 4       # V# u upi u upi )zNo enum values defined for: '')r   r   	__class__r   valuetry_ann_to_typerV   _Cunify_type_listr   get)r   rs   enum_valuesvr   tir_typesress   &&      r<   get_enum_value_typer  a  s    #'7K8QGHH$/0KqT!'']KE0167A'H7 ((
"
"8
,C{{}J 17s   B)B.c                $    V ^8  d   QhR\         /# )r7   r8   )bool)r:   s   "r<   r=   r=   s  s      d r?   c                    \        V \        P                  4      '       d   R # \        V \        P                  \        P                  \        P
                  \        P                  \        P                  \        P                  \        P                  \        P                  \        P                  3	4      '       d   \        P                  ! R^R7       R # R# )TzTorchScript will treat type annotations of Tensor dtype-specific subtypes as if they are normal Tensors. dtype constraints are not enforced in compilation either.)
stacklevelF)
issubclassrV   rW   
LongTensorDoubleTensorFloatTensor	IntTensorShortTensor
HalfTensor
CharTensor
ByteTensor
BoolTensorwarningswarn)r   s   &r<   	is_tensorr  s  s    #u||$$OO
	
  	H 		
 r?   c                    V ^8  d   QhRR/# r6   r9   )r:   s   "r<   r=   r=     s      d r?   c                     R # rA   r9   )inps   &r<   	_fake_rcbr    s    r?   c                    \         P                  ! V 4      pV \        P                  P                  J d   \
        P                  ! 4       # V f   \        P                  ! 4       # \        P                  ! V 4      '       d'   \        V 4      '       d   \
        P                  ! 4       # \        V 4      '       dN   \        V4      ^8X  d   V^ ,          R8X  d   \        . 4      # \        V Uu. uF  p\        WA4      NK  	  up4      # \        V 4      '       d'   \        V^ ,          V4      pV'       d   \!        V4      # \#        V 4      '       d   \        V^ ,          V4      p\        V^,          V4      pVf'   \%        RV^ ,           RVP'                  4        24      hVf'   \%        RV^,           RVP'                  4        24      h\)        Wg4      # \+        V 4      '       d   \-        V^,          \/        R 4      4      '       d   V^ ,          pM	V^,          p\        W4      p	V	'       g0   \1        R\3        V 4       R\3        V4       R\3        V4       24      h\5        V	4      # \7        V 4      '       d   \9        V4      \:        \<        \>        08X  d   \@        P                  ! 4       # . p
\         P                  ! V 4       F~  pVf%   V
PC                  \        P                  ! 4       4       \        WA4      pV'       g0   \1        R\3        V 4       R\3        V4       R\3        V4       24      hV
PC                  V4       K  	  \E        V
4      # \F        PH                  PJ                  PM                  4       '       d.   \O        V 4      '       d   \Q        \        V^ ,          V4      4      # \S        V 4      '       d   \U        \        V^ ,          V4      4      # \W        V 4      '       d<   V'       d   \        V^ ,          V4      M\X        P                  ! 4       p\[        V4      # V \<        J d   \\        P                  ! 4       # V \>        J d   \^        P                  ! 4       # V \:        J g   V \F        P`                  J d   \b        P                  ! 4       # V \d        J d   \f        P                  ! 4       # V \h        J d   \j        P                  ! 4       # V \l        J d   \X        P                  ! 4       # V \/        R 4      J d   \        P                  ! 4       # \        P                  ! V 4      '       d(   \o        V R4      '       d   \q        V Pr                  4      # V \F        Pt                  J d   \v        P                  ! 4       # V \F        Px                  J d   \z        P                  ! 4       # V \F        P|                  J d   \~        P                  ! 4       # V \F        P                  J d   \b        P                  ! 4       # V \F        P                  J d   \b        P                  ! 4       # \        P                  ! V 4      '       d   \-        V \        P                  4      '       dr   \        V 4      f;   \F        P                  P                  P                  W4      pVP                  4       pM\        V 4      p\        V\        W4      \        V 4      4      # \        P                  ! V 4      '       d`   \        V 4      pVe   V# \F        P                  P                  V 4      '       d*   \F        P                  P                  P                  W4      # Vf   \        p\F        P                  P                  WV4      # u upi )NUnknown type annotation: '' at zUnsupported annotation z could not be resolved because z could not be resolved. At
__torch_script_interface__r9   )RrX   get_argsr|   	Signaturer   r   getInferredr   r   isclassr  r'   r   r   r   r%   r   r"   r   	highlightr
   r&   r  r   AssertionErrorreprr   r(   setintfloatcomplexr   r   r   rV   r^   r_   r`   r0   r/   r#   r   r!   r   r   r   r   SymIntr   r   r   r  r   r   hasattrr   r  devicer	   	Generatorr   Streamr   dtypeqschemer   r   r.   r   _script_recursive_compile_classqualified_namer   r   r  r   _jit_internalcan_compile_classr  r   _resolve_type_from_object)r   rs   r]   ann_argsa	elem_typekeyr   	contained
valid_typeinner
maybe_typeelementTypescripted_classrB   maybe_script_classs   &&&             r<   r   r     se   s#H
g%%%%%''
{||~s	#~~}}x=A(1+"3R= 8D8a/!18DEEs||#HQK5	I&&s||hqk3/S1;,Xa[Ms}}>OP  =,Xa[Ms}}>OP  ##3hqk4:.. I I$Y4
 )$s)4S	?##?S	{L  J''}}x=S%11>>## %AyX\\^,(0J$-d3i[8WAwi;DI;H  LL$ & ))++S9::~~/(1+s;<<}};Cohqk37%%
e|}}
g~  
czSELL({{}
cz~~
d{||~
cz{{}
d4j||~s-I J JS;;<<
ell  ""
eoo!!##
ell  ""
ekk{{}
emm{{}s
3		 : :S!)"YY..GGQN!002D"3'D1#;T#YGGs.s3)%%005599$$==cGG {88--c<<K Es   (]5c                 d    \        WV4      pVe   V# \        RV  RVP                  4        24      h)Nr  r  )r   r   r  )r   rs   r]   the_types   &&& r<   r   r   	  s9    s-H
1#eCMMO;LM
NNr?   r   r)   r   r   r   r+   r'   r%   r   r"   r&   r(   r   r   r   r   r   r   r   r
   r   rz   r   r   rq   ro   r   rl   r   r   rA   )Tr   re   r   r   r|   r   rX   r  textwrapr   rV   torch._Cr   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   torch._jit_internalr   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   torch._sourcesr-   _stater.   r^   r_   r`   r/   r0   r1   
torch._opsr2   r4   rU   rz   r   r   r   r   r   rq   ro   r   rl   r  r  r  r   r   __all__r9   r?   r<   <module>rG     s0   
  
   	         .     , 5 % 	%%''!1 ' - -8:N	/,
*%0<@:FY(".$:r=jO"	"
" " 	"
 " " " " " " " " " " "  !"" #"$ %"& '"( )"* +", -"2 3"4 5"6 7"8 9": ;"< ="> ?"@ A"B C"r?   