
    G j0Z              	      H   S SK Jr  S SK r S SKrS SKrS SKrS SKrS SKrS SKrS SK	r	S SK
r
S SKJrJr  S SK
Jr  S SKJrJrJr  S SKrS SKrS SKrS SKrS SKJrJr  SSKJrJr  SS	KJr  \(       a  S S
KJ r J!r!  Sq" S SK#Jr$  S'S jr&S'S jr'S(S jr(      S)S jr)\*" \)" \SS95      r+\*" \)" \SS95      r,\+ V s/ s H  o RZ                  PM     sn r.\R^                  R`                  \R^                  Rc                  \	Rd                  SS S:H  SS9\R^                  Rc                  \	Rd                  Rf                  S:H  SS9\R^                  Ri                  S\.5      \R^                  Ri                  S/ SQ5      \R^                  Rk                  S5      S*S j5       5       5       5       5       5       r6\\R^                  R`                  \R^                  Rc                  \	Rd                  Rf                  S:H  SS9\R^                  Ri                  S\.5      \R^                  Ri                  SSS /5              S+S! j5       5       5       5       5       r7S'S" jr8S'S# jr9\R^                  Rc                  \:" \Rv                  S$5      (       + S%S9S'S& j5       r<g! \% a    \r$ GNf = fs  sn f ),    )annotationsN)PathPurePath)
ModuleType)TYPE_CHECKINGAnyProtocol)RUN_SLOWskip_if_optional_else_raise   )_core_util)slow)IterableIteratorF)r	   c                      SSK Jn   [        (       d%  W " / SQ5      nUS   (       a   eUS   (       a   eSqg g ! [         a  n[        U5         S nANKS nAff = f)Nr   )run)z--config-file=z--cache-dir=./.mypy_cachez--no-error-summaryz-czimport trio   T)mypy.apir   ImportErrorr   mypy_cache_updated)r   errorresults      i/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/trio/_tests/test_exports.py_ensure_mypy_cache_updatedr   '   se    + 
  
 !9}!9}! 	  +#E**+s   9 
AAAc                 N   [         [         R                  [         R                  /n [        [        5       Hm  nUR                  S5      (       a  M  SnU  H7  nU[        U5      ;   d  M  [        X15      [        [        U5      L d  M2  US-  nM9     [        X5        US:X  a  Mm   e   g )N_r   r   )triolowleveltestingdirr   
startswithgetattrprint)sourcessymbolfoundsources       r    test_core_is_properly_reexportedr)   @   s     T]]DLL1Ge*S!!FV$)@GE * 
  	fzz     c                V     [         R                  " SU 45        g! [         a     gf = f)z&Check if a class cannot be subclassed.SubclassTesterFT)types	new_class	TypeError)clss    r   class_is_finalr1   R   s1    (3&1   s    
((c              #  T  #    U v   U R                   R                  5        H  u  p#UR                  S5      (       a	  U(       a  M$  [        U[        5      (       d  M;  UR
                  R                  U R
                  5      (       d  Mg  X0L a  Mm  [        X15       S h  vN   M     g  N	7fNr   )__dict__itemsr"   
isinstancer   __name__iter_modules)moduleonly_publicnameclass_s       r   r8   r8   ]   s      L--/??3K&*--))&//::444 0 	5s   BB(B&
B(T)r:      )      r   betaz several tools don't support 3.14)reasonalphaz<skip static introspection tools on Python dev/alpha releasesmodnametool)pylintjedimypypyright_verifytypesz>ignore:module 'sre_constants' is deprecated:DeprecationWarningc                   [         R                  " U5      nS&S jnU" [        U5      5      nUS:X  a  UR                  S5        [        R
                   H3  n[        X6S 5      [        [        U5      L d  M"  UR                  U5        M5     U S:X  aC   SSKJ	n  W" 5       n	UR                  c   eU	R                  UR                  U5      n
U" U
5      nGOU S:X  ar  [        R                  R                   S	:w  a  ["        R$                  " S
5         SS KnWR)                  SU SU S35      nUR+                  5       nU" S U 5       5      nGO(U S:X  Gak  [        R                  R                   S	:w  a  ["        R$                  " S5        [,        (       d  ["        R$                  " S5        [.        R0                  " 5       S-  n[3        5         [5        UR7                  S5      5      nUS-   R9                  SS5      u  nnUS S nU(       a  UU-  OUnUR;                  5       (       a  US-  nOUUS-   -  nUR=                  5       (       d   eUR?                  5       (       d   eURA                  5        n[B        RD                  " URG                  5       5      nU" S US   RI                  5        5       5      nS S S 5        OU S:X  a  [,        (       d  ["        R$                  " S5         SS K%nSS K&nURO                  SSU 3S/SS 9n[B        RD                  " URP                  5      nUS!   S    Vs1 s H2  nUS"   RS                  U5      (       d  M  US"   [U        U5      S-   S  iM4     nnO
[W        5       eUW-
  nUS1-  nU(       aE  [Y        U  S#U S$35        [Y        5         [[        U5       H  n[Y        S%U 35        M     [W        5       eg ! [         a  n[        U5         S nAGNOS nAff = f! [         a  n[        U5         S nAGNS nAff = f! , (       d  f       N= f! [         a  n[        U5         S nAGNTS nAff = fs  snf )'Nsymbolsc                `    U  Vs1 s H  oR                  S5      (       a  M  UiM     sn$ s  snf r3   r"   rJ   r&   s     r   no_underscores9test_static_tool_sees_all_symbols.<locals>.no_underscores   s%    %,KW64E4Ec4JWKKKs   ++r   testsrE   r   )PyLinterrF   cpythonjedi does not support pypyzimport ; .c              3  8   #    U  H  oR                   v   M     g 7fNr;   .0cs     r   	<genexpr>4test_static_tool_sees_all_symbols.<locals>.<genexpr>   s     %Bkffk   rG   mypy does not support pypyz$use --run-slow to check against mypy.mypy_cache*/trior   __init__.data.json
.data.jsonc              3  p   #    U  H,  u  pUR                  S 5      (       a  M  US   S:X  d  M(  Uv   M.     g7f)rU   kindGdefNrL   )rZ   keyvalues      r   r\   r]      s8      *"=JC~~c* /4V}/F "=s   66	6namesrH   z'use --run-slow to check against pyrightpyrightz--verifytypes=z--outputjsonT)capture_outputtypeCompletenessr;   z" can't see the following names in :z    rJ   zIterable[str]returnzset[str]).	importlibimport_moduler!   discard
__future__all_feature_namesr#   removepylint.lintrQ   r   r   __file__get_astsysimplementationr;   pytestskiprF   Scriptcompleter
   r   cwdr   nextglobsplitis_direxistsis_fileopenjsonloadsreadr5   rk   
subprocessr   stdoutr"   lenAssertionErrorr$   sorted)rD   rC   tmp_pathr9   rN   runtime_namesr;   rQ   r   linteraststatic_namesrF   scriptcompletionscache
trio_cacher   	mod_cache
cache_file
cache_jsonrk   r   rescurrent_resultxmissing_namess                              r   !test_static_tool_sees_all_symbolsr   w   s   & $$W-FL #3v;/M &g& ,,6&'*d*CC  & - x	/, ***nnV__g6%c*	""i/KK45	/
 wwir'!<=oo'%%Bk%BB	""i/KK45xKK>?
]*"$%**X./
m**32
7#2,,3J(	!$88I"g&<=I!!!!  """"^^JOO$56J) *",W"5";";"=* L  
&	&xKKAB	/ 	nn.	2NC  
 CJJ/ $$67	B
By##G, *AfIc'lQ&()B 	 
  "L0M gYM8	CD=)DD-  * k  	/'..	/  	/'..	/<   	/'..	/
sa   O O/ 0AP&P# .QQ
O,O''O,/
P9P

P
P #
Q-P>>Qmodule_namerF   rG   c                  ^ [         [        R                  U5         nSLS jnU S:X  a4  [        R                  R
                  S:w  a  [        R                  " S5        U S:X  a4  [        R                  R
                  S:w  a  [        R                  " S5        U S:X  Ga  [        R                  " 5       S-  m[        5         [        TR                  S5      5      nUnUS	-   R                  S	S
5      u  pvUS S nU(       a  XV-  OUnUR                  5       (       a  US-  nOXVS-   -  nUR                  5       (       d   eUR!                  5       (       d   eUR#                  5        n	[$        R&                  " U	R)                  5       5      n
S S S 5        [*        R,                  SMU4S jj5       n0 nUR.                  R1                  5        GH  u  p[3        U[4        5      (       d  M  US:X  a  U[7        [8        5      ;   a  M8  US:X  a  US;   a  MF  [;        [7        [5        U5      5      5      1 Sk-  n[5        U5      [4        L a"  UR=                  S5        UR=                  S5        U" S [>        R@                  " U5       5       5      U-
  nU S:X  aC   SS K!nWRI                  SU SU SU S	35      nURK                  5       nU" S U 5       5      U-
  nOU S:X  a  W
S   U   nSU;  d   S5       eW" US   5      nSU;   d   eUS   nU" S URM                  SS 5       5       5      nUS!   S
S   H0  nU" U5      S   nUU" S" URM                  SS 5       5       5      -  nM2     UU-  nO[O        S#5      eUU-
  nUU-
  nU S:X  a9  [P        URR                  ;   a%  [        RT                  S$:  a  URW                  S%5        U S:X  a9  [P        URR                  ;   a%  [        RT                  S$:  a  URW                  S&5        U S:X  ad  [X        RZ                  " U5      (       aI  []        U5      nU Vs1 s H  nUR_                  S'5      (       a  M  UiM     nn[]        U5      US
-
  :X  d   e[X        RZ                  " U5      (       a  URW                  S(5        U S:X  aW  [`        Rb                  URR                  ;   a9  [        RT                  S):  a%  [        RT                  S*:  a  URW                  S+5        U S:X  a%  U[d        Rf                  :X  a  URW                  S,5        [d        Rh                  S-S.1[d        Rj                  S/S01[d        Rl                  1 S1k[d        Rn                  S21[d        Rp                  S31[d        Rr                  S/1[d        Rt                  S/1[d        Rv                  Rx                  S4S51[d        Rv                  Rz                  1 S6k0	nU S:X  a9  UU;   a3  []        U5      nUUU   -  n[]        U5      U[]        UU   5      -
  :X  d   eU[d        R|                  :X  a"  URW                  S75        URW                  S85        U S:X  a  [        RT                  S$:  a  U[d        Rh                  [d        R~                  [d        R                  [d        Rn                  [d        Rr                  4;   a"  URW                  S95        URW                  S:5        U[d        Rh                  [d        R~                  4;   a"  URW                  S;5        URW                  S<5        U[d        R                  [d        R                  [d        R                  4;   ac  U[        R.                  R                  5       -  nU S:X  a  [        R                  S=:X  a  U1 S>k-  nU S:X  a  [        R                  S=:X  a  U1 S>k-  nU S:X  a[  [        RT                  S S? S@:X  aD  U[d        R                  [d        R                  [d        R                  4;   a  URW                  SA5        [        U[        5      (       a"  URW                  SB5        URW                  SC5        [        RT                  S@:  a,  [X        RZ                  " U5      (       a  URW                  SD5        [        RT                  S*:  a"  UR                  SE5        UR                  SF5        U(       d
  U(       d  GM  UUSG.X S	U 3'   GM     U(       a   SSHKIJIn  [        SIU  SJU SK35        U" U5        U(       a   eg ! , (       d  f       GN= f! [D         a  n[G        U5         S nAGNS nAff = fs  snf )NNc                    U  Vs1 s H3  nUR                  S5      (       a  UR                  S5      (       d  M1  UiM5     sn$ s  snf )Nr   __rL   rM   s     r   	no_hidden6test_static_tool_sees_class_members.<locals>.no_hidden  sG     "
!%%c**v/@/@/F !
 	
 
s
   0AArF   rR   rS   rG   r_   r`   ra   rU   r   rb   rc   rd   c                  > U R                  S5      Gtpn[        T	R                  S5      5      nXA-  nUR                  5       (       d  XAS-   -  nU(       a=  US S  H  nXV-  nM	     XRS   -  nUR                  5       (       a  US-  nO%XRS   S-   -  nOUR                  5       (       a  US-  nUR	                  5        n[
        R                  " UR                  5       5      S   U   sS S S 5        $ ! , (       d  f       g = f)NrU   z3.*/rd   rb   rc   rj   )r   r   r   r   r   r   r   r   )
r&   topnamerC   r;   versionr   piece
next_cachefr   s
            r   lookup_symbol:test_static_tool_sees_class_members.<locals>.lookup_symbol0  s    &,ll3&7#Gt5::f-.G)I##%%#'=>	$Sb\E&I *&4
$$&& *-A AI )R[<-G HI!!##11	!Qzz!&&(+G4T: "!!s   >*C22
D ztrio.socketztrio.testing)_RaisesGroup_Matcher>   __copy__	__final__	__order__	__slots____weakref____deepcopy____getstate____setstate____match_args____orig_bases____parameters____annotations____attrs_attrs____class_getitem____protocol_attrs____attrs_own_setattr____callable_proto_members_only____firstlineno____static_attributes__c              3  *   #    U  H	  oS    v   M     g7f)r   N )rZ   r   s     r   r\   6test_static_tool_sees_class_members.<locals>.<genexpr>t  s     ?$>qd$>s   r   zfrom z import rT   c              3  8   #    U  H  oR                   v   M     g 7frW   rX   rY   s     r   r\   r     s     $A[VV[r^   rj   nodezpreviously this was an 'if' but it seems it's no longer possible for this cache to contain 'node', if this assert raises for you please let us know!	cross_refc              3  T   #    U  H  oR                  S 5      (       a  M  Uv   M      g7frU   NrL   rZ   ks     r   r\   r     s      %0aS8I0   (	(r   mroc              3  T   #    U  H  oR                  S 5      (       a  M  Uv   M      g7fr   rL   r   s     r   r\   r     s      *4!LL<MAA4r   zunknown tool)r>      add_note	__notes__AttrsAttributes____attrs_props__)r>      )r>   r?   __signature__cancel_scopepeer_addressendpointsocketincoming_packets_buffer>   pidargsstdinstdiostderrr   transport_listenertransport_stream
close_hookreceive_some_hook>   r   send_all_hook"wait_send_all_might_not_block_hookreceive_streamsend_stream
__aenter__	__aexit__	__aiter__	__anext__win32>   groupowneris_mountr   )r>      with_segments__reversed____getnewargs____replace____annotate_func____annotations_cache__)missingextra)pprint
z$ can't see the following symbols in rn   ro   )r&   strrp   zdict[str, Any])KPUBLIC_MODULESPUBLIC_MODULE_NAMESindexrz   r{   r;   r|   r}   r   r   r   r   r   r   r   r   r   r   r   r   r   	functools	lru_cacher4   r5   r6   typer!   stdlib_socketsetaddinspect
getmembersrF   r   r   r~   r   getr   BaseException__mro__version_inforv   attrshasr   endswithenumEnumr   NurseryDTLSChannelDTLSEndpointProcessSSLListener	SSLStreamSocketListenerSocketStreamr    MemoryReceiveStreamMemorySendStreamStapledStreamMemoryReceiveChannelMemorySendChannelWindowsPath	PosixPathr   keysplatform
issubclasstuplers   r   r$   ) rD   r   r   r9   r   r   rC   r   r   r   r   r   errors
class_namer<   ignore_namesr   rF   r   r   r   r   cached_type_infor   r&   r   r   beforeeEXTRASr   r   s                                   @r   #test_static_tool_sees_class_membersr,     s     /55kBCF
 v~#,,11Y>01v~#,,11Y>01v~
]*"$%**X./
m**32
#2,,3J(	!$88I"&<=I!!!!  """"^^JOO$56J  
			; 
	;( !#F$oo335
&$''-'J#m:L,L .(Z;W-W 3tF|,- 1
 
, <4./45 ?G$6$6v$>??,N 	 6>3 [[}HZL:,aHF !//+K$$A[$AALPLV^)'2:>..f ff.,-=k-JK----#F+D$ %88GR0% L u+ab/$V,V4	 *#xx4* !  *
 L(L !00,.}, FN/  G+NN:& FN/  G+LL%6>eii//ZF %M1QZZ8K-LQEMu:!+++99VNN,- FN		V^^+  G+  7*LL) 6>f4LL( ~z:*CDLLO34NN/0(zLL,,|=P.QLL)) ,
 6>f.ZFVF^#Eu:#fVn*=!==== T'''LL)*LL' 6>c..'9  ))&&  ##  |,{+$**D,E,EFF{+{+dii!1!14>>BBx((--//Gv~#,,'"999v~#,,'"977 FN  !$/499d&6&6GGNN?+ fe$$LL(NN+,w&599V+<+<NN=)w& OO/0OO34ee"5F]!J<01Y 6f !4&<[MKLv:ve \  3+E223n Ns0   %%dd+e	e
d
d>(d99d>c                    [        [        R                  5      (       d   e[         HW  n U R                  R                  5        H6  n[        U[        R                  5      (       d  M$  [        U5      (       a  M6   e   MY     g)z6Check all NoPublicConstructor classes are also @final.N)r1   r   NoPublicConstructorALL_MODULESr4   valuesr6   )r9   r<   s     r   test_nopublic_is_finalr1  !  s^    %334444oo,,.F&%";";<<%f---- / r*   c                    [        [        5      (       a   e[        [        5      (       d   e[         GH1  n U R                  R                  5        GH  u  p[        U[        5      (       d  M  UR                  S5      (       a  M5  [        R                  " U5      (       a  MR  [        UR                  ;   d  [        UR                  ;   a  M|  [        U[        5      (       a  M  U[         R"                  R$                  L d  U[         R&                  R(                  L a  M  U[         R*                  L a  M  UR-                  S5      (       a  M  [        U5      (       a  GM   e   GM4     g )Nr   
Statistics)r1   objectboolr   r4   r5   r6   r  r"   r  
isabstractr	   	__bases__Protocol_extr#  r
  r   abc
Instrumentr   
SocketTyper   r  )r9   r;   r<   s      r   test_classes_are_finalr<  +  s   f%%%%$ ."OO113LDfd++s## !!&))6+++|v?O?O/O &-00 ,,,$++:P:P0P "}}\**!&))))? 4 !r*   trio_moddedzPytest plugin not installed.c                     [          H  n U R                  R                  5        H  n[        R                  " U5      (       d  M   [        U[        R                  5      (       a  MA  [        R                  " U5       Vs/ s H_  nUR                  (       d  M  UR                  UR                  UR                  R                  S0 5      R                  S5      4;  d  M]  UPMa     nnU/ :X  a  M   U5       e   M     gs  snf )a
  Check whether we provide `alias` for all underscore prefixed attributes.

Attrs always sets the `alias` attribute on fields, so a pytest plugin is used
to monkeypatch `field()` to record whether an alias was defined in the metadata.
See `_trio_check_attrs_aliases`.
trio_original_argsaliasN)r   r4   r0  r  r  r6   r   r.  fieldsinitr@  r;   metadatar	  )r9   r<   attr
attributess       r   'test_pyright_recognizes_init_attributesrF  T  s     !oo,,.F99V$$&%";";<< "LL0
0D99  ::IIMM%%&:B?CCGL 0  
 #+V+#% / !
s   =C;AC;C;)rp   None)r0   r  rp   r5  )r9   ztypes.ModuleTyper:   r5  rp   zIterator[types.ModuleType])rD   r   rC   r   r   r   rp   rG  )rD   r   r   r   r   r   rp   rG  )=rt   r   r  r  rq   r  r   r   r  rz   r-   pathlibr   r   r   typingr   r   r	   r  r|   r   trio.testingtrio._tests.pytest_pluginr
   r    r   r   _core._tests.tutilr   collections.abcr   r   r   typing_extensionsr8  r   r   r)   r1   r8   listr   r/  r7   r   markredistributors_should_skipskipifr  releaselevelparametrizefilterwarningsr   r,  r1  r<  hasattrfieldrF  )ms   0r   <module>rZ     s   "        
  "  / /     K  %2 :
"2$555  5" l4T:;<%89+9:>azz>:  ''Ra..-   !!W,I   $78!RSDn	 T 9	 ($nb '' !!W,I   (;<&&!12Y
YY Y 
	Y 3 =	 ( Yx.%*R ]++)  ,	,k  LZ ;s   ;J 9JJJ