ó
    °"³j	  ã                  óæ   • 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Jr  S SK	J
r
  S/r " S S\R                  R                  5      r " S S	\R                  R                  5      rSS
 jrSS jrg)é    )ÚannotationsN)ÚSequence)Ú
ModuleTypeÚalias_httpxc                  ó>   • \ rS rSr% S\S'   S	S jrS
S jrSS jrSrg)Ú_AliasLoaderé   ú%importlib.machinery.ModuleSpec | NoneÚ_original_specc                ó   • Xl         g ©N)Ú
_real_name)ÚselfÚ	real_names     ÚJ/home/mande/repo/quber/.venv/lib/python3.13/site-packages/httpx2/_alias.pyÚ__init__Ú_AliasLoader.__init__   s   € Ø#�ó    c                óh   • [         R                  " U R                  5      nUR                  U l        U$ r   )Ú	importlibÚimport_moduler   Ú__spec__r   )r   ÚspecÚmodules      r   Úcreate_moduleÚ_AliasLoader.create_module   s'   € Ü×(Ò(¨¯©Ó9ˆØ$Ÿo™oˆÔØˆr   c                ó&   • U R                   Ul        g r   )r   r   )r   r   s     r   Úexec_moduleÚ_AliasLoader.exec_module   s   € Ø×-Ñ-ˆ�r   )r   r   N)r   ÚstrÚreturnÚNone)r   zimportlib.machinery.ModuleSpecr!   r   )r   r   r!   r"   )	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__annotations__r   r   r   Ú__static_attributes__© r   r   r   r      s   ‡ Ø9Ó9ô$ô÷
.r   r   c                  ó>   • \ rS rSrSS jr  S       SS jjrSrg)	Ú_AliasFinderé   c                ó   • Xl         X l        g r   ©Ú_aliasÚ_real)r   ÚaliasÚreals      r   r   Ú_AliasFinder.__init__   s   € ØŒØ�
r   Nc                ót  • XR                   :w  a$  UR                  U R                   S-   5      (       d  g U R                  UR                  U R                   5      -   nU[        R
                  ;  a!  [        R                  R                  U5      c  g [        R                  R                  U[        U5      5      $ )NÚ.)r/   Ú
startswithr0   ÚremoveprefixÚsysÚmodulesr   ÚutilÚ	find_specÚ	machineryÚ
ModuleSpecr   )r   ÚfullnameÚpathÚtargetr   s        r   r;   Ú_AliasFinder.find_spec"   sˆ   € ð —{‘{Ó"¨8×+>Ñ+>¸t¿{¹{ÈSÑ?P×+QÑ+QØØ—J‘J ×!6Ñ!6°t·{±{Ó!CÑCˆ	ØœCŸK™KÓ'¬I¯N©N×,DÑ,DÀYÓ,OÑ,WØÜ×"Ñ"×-Ñ-¨h¼ÀYÓ8OÓPÐPr   r.   )r1   r    r2   r    r!   r"   )NN)r>   r    r?   zSequence[str] | Noner@   zModuleType | Noner!   r
   )r#   r$   r%   r&   r   r;   r(   r)   r   r   r+   r+      sE   † ôð &*Ø$(ð	QàðQð #ðQð "ð	Qð
 
/÷Qð Qr   r+   c                óR  ^ • [         R                  R                  T 5      nUb  X!La  [        T  ST  S35      e[	        U 4S j[         R
                   5       5      (       d4  [         R
                  R                  S[        T UR                  5      5        U[         R                  T '   g )Nz? was already imported; call `alias_httpx()` before any `import z`.c              3  óp   >#   • U  H+  n[        U[        5      =(       a    UR                  T:H  v •  M-     g 7fr   )Ú
isinstancer+   r/   )Ú.0Úfinderr1   s     €r   Ú	<genexpr>Ú_alias.<locals>.<genexpr>5   s+   øé € ÐgÒYfÈvŒz˜&¤,Ó/×J°F·M±MÀUÑ4JÔJÒYfùs   ƒ36r   )	r8   r9   ÚgetÚRuntimeErrorÚanyÚ	meta_pathÚinsertr+   r#   )r1   r   Úexistings   `  r   r/   r/   0   s�   ø€ Ü�{‰{�‰˜uÓ%€HØÑ Ò 6Ü˜e˜WÐ$cÐdiÐcjÐjlÐmÓnÐnäÔgÔY\×YfÒYfÓg×gÑgÜ�‰×Ñ˜Q¤¨U°F·O±OÓ DÔEØ„C‡K�K�Òr   c                 óD   • SSK n SSKn[        SU5        [        SU 5        g)af  
Make `import httpx` resolve to `httpx2`, and `import httpcore` to `httpcore2`, process-wide.

Intended for applications migrating from `httpx`, so that dependencies still
importing `httpx` or `httpcore` share the `httpx2` classes. Libraries should never call this.

Must be called before anything imports `httpx` or `httpcore`. Calling it again is a no-op.
r   NÚhttpxÚhttpcore)Ú	httpcore2Úhttpx2r/   )rR   rS   s     r   r   r   :   s   € ó Ûä
ˆ7�FÔÜ
ˆ:�yÕ!r   )r1   r    r   r   r!   r"   )r!   r"   )Ú
__future__r   r   Úimportlib.abcÚimportlib.machineryÚimportlib.utilr8   Úcollections.abcr   Útypesr   Ú__all__ÚabcÚLoaderr   ÚMetaPathFinderr+   r/   r   r)   r   r   Ú<module>r^      s\   ðÝ "ã Û Û Û Û 
Ý $Ý àˆ/€ô.�9—=‘=×'Ñ'ô .ôQ�9—=‘=×/Ñ/ô Qô& õ"r   