+
    Îi                    r   R t ^ RIHt ^ RIt^ RIt^ RIt^ RIHt ^ RI	H
t
 ^ RIHtHtHtHt . ROt]! R4      tRt]P&                  ! R4      t ! R R]4      tRR R lltRR R lltR R ltR R lt]
 ! R R
4      4       t ! R R	4      t]
 ! R R4      4       t]]]]3,          t]
 ! R R4      4       tR# )zPEP 610)annotationsN)Iterable)	dataclass)AnyClassVarTypeVarUnion	DirectUrlDirectUrlValidationErrorDirInfoArchiveInfoVcsInfoTzdirect_url.jsonz.^\$\{[A-Za-z0-9-_]+\}(:\$\{[A-Za-z0-9-_]+\})?$c                      ] tR t^tRtR# )r
    N)__name__
__module____qualname____firstlineno____static_attributes__r       n/Users/ahmad/.openclaw/workspace/scripts/.venv/lib/python3.14/site-packages/pip/_internal/models/direct_url.pyr
   r
      s    r   c          
     ,    V ^8  d   QhRRRRRRRRR	R/# )
   ddict[str, Any]expected_typetype[T]keystrdefaultT | Nonereturnr   )formats   "r   __annotate__r$      s4      &-47BJr   c                r    W 9  d   V# W,          p\        WA4      '       g   \        V: RV RV R24      hV# )z3Get value from dictionary and verify expected type.z has unexpected type for z (expected ))
isinstancer
   r   r   r   r    values   &&&& r   _getr*      sK     |FEe++&i0[qQ
 	
 Lr   c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )r   r   r   r   r   r   r   r    r!   r"   r   r   )r#   s   "r   r$   r$   ,   s4      &-47BJr   c                B    \        WW#4      pVf   \        V R24      hV# )Nz must have a value)r*   r
   r(   s   &&&& r   _get_requiredr-   ,   s-     30E}&#.@'ABBLr   c                    V ^8  d   QhRRRR/# )r   infoszIterable[InfoType | None]r"   InfoTyper   )r#   s   "r   r$   r$   5   s      4  r   c                    V  Uu. uF
  qf   K  VNK  	  p pV '       g   \        R4      h\        V 4      ^8  d   \        R4      hV ^ ,          f   Q hV ^ ,          # u upi )Nz/missing one of archive_info, dir_info, vcs_infoz1more than one of archive_info, dir_info, vcs_info)r
   len)r/   infos   & r   _exactly_one_ofr4   5   sh    #8edTTeE8&=
 	
 5zA~&?
 	
 88O 9s
   AAc                    V ^8  d   QhRRRR/# )r   kwargsr   r"   r   r   )r#   s   "r   r$   r$   C   s     > >3 >> >r   c                 b    V P                  4        UUu/ uF  w  rVf   K  WbK  	  upp# u uppi )z Make dict excluding None values.)items)r6   kvs   ,  r   _filter_noner;   C   s(    #\\^=^TQqDAD^===s   ++c                  j    ] tR t^Ht$ RtR]R&   R]R&   R]R&   RtR]R	&   ]R
 R l4       tR R lt	Rt
R# )r   vcs_infor   namer   vcs	commit_idN
str | Nonerequested_revisionc                    V ^8  d   QhRRRR/# )r   r   dict[str, Any] | Noner"   zVcsInfo | Noner   )r#   s   "r   r$   VcsInfo.__annotate__Q   s     
 
0 
^ 
r   c           	     	~    Vf   R # V ! \        V\        R4      \        V\        R4      \        V\        R4      R7      # )Nr?   r@   rB   )r?   r@   rB   )r-   r   r*   clsr   s   &&r   
_from_dictVcsInfo._from_dictP   s<    9ae,#AsK8#As,@A
 	
r   c                   V ^8  d   QhRR/# r   r"   r   r   )r#   s   "r   r$   rE   Z   s     
 
. 
r   c                	Z    \        V P                  V P                  V P                  R 7      # ))r?   rB   r@   )r;   r?   rB   r@   selfs   &r   _to_dictVcsInfo._to_dictZ   s&    #66nn
 	
r   r   )r   r   r   r   r>   __annotations__rB   classmethodrI   rP   r   r   r   r   r   r   H   s=    D(	HN%)
)
 

 
r   c                      ] tR t^btRtRR R llt]R R l4       t]P                  R R l4       t]	R	 R
 l4       t
R R ltRtR# )r   archive_infoNc               $    V ^8  d   QhRRRRRR/# )r   hashrA   hasheszdict[str, str] | Noner"   Noner   )r#   s   "r   r$   ArchiveInfo.__annotate__e   s(       & 
	r   c                	    W n         Wn        R # N)rX   rW   )rO   rW   rX   s   &&&r   __init__ArchiveInfo.__init__e   s     	r   c                   V ^8  d   QhRR/# )r   r"   rA   r   )r#   s   "r   r$   rZ   o   s      j r   c                	    V P                   # r\   )_hashrN   s   &r   rW   ArchiveInfo.hashn   s    zzr   c                    V ^8  d   QhRRRR/# )r   r)   rA   r"   rY   r   )r#   s   "r   r$   rZ   s   s      *  r   c                	(   Vej    VP                  R^4      w  r#T P                  f
   Y#/T n        M=Y P                  9  d.   T P                  P	                  4       T n        Y0P                  T&   Wn        R #   \         d    \        RT: 24      hi ; i)N=z"invalid archive_info.hash format: )split
ValueErrorr
   rX   copyra   )rO   r)   	hash_name
hash_values   &&  r   rW   rb   r   s    (-C(;%	
 {{"(5++-"kk..0)3I&
  .8	B s   A6 6Bc                    V ^8  d   QhRRRR/# )r   r   rD   r"   zArchiveInfo | Noner   )r#   s   "r   r$   rZ      s      N N0 N5G Nr   c                	^    Vf   R # V ! \        V\        R4      \        V\        R4      R7      # )NrW   rX   rW   rX   )r*   r   dictrG   s   &&r   rI   ArchiveInfo._from_dict   s)    9QV,T!T85LMMr   c                   V ^8  d   QhRR/# rL   r   )r#   s   "r   r$   rZ      s     @ @. @r   c                	D    \        V P                  V P                  R 7      # )rm   )r;   rW   rX   rN   s   &r   rP   ArchiveInfo._to_dict   s    4;;??r   )ra   rW   rX   )NN)r   r   r   r   r>   r]   propertyrW   setterrS   rI   rP   r   r   r   r   r   r   b   sZ    D   
[[ " N N
@ @r   c                  V    ] tR t^t$ RtR]R&   RtR]R&   ]R R l4       tR	 R
 lt	Rt
R# )r   dir_infor   r>   Fbooleditablec                    V ^8  d   QhRRRR/# )r   r   rD   r"   zDirInfo | Noner   )r#   s   "r   r$   DirInfo.__annotate__   s     O O0 O^ Or   c           	     	B    Vf   R # V ! \        V\        RRR7      R7      # )Nrx   F)r    rx   )r-   rw   rG   s   &&r   rI   DirInfo._from_dict   s     9M!T:uMNNr   c                   V ^8  d   QhRR/# rL   r   )r#   s   "r   r$   rz      s     < <. <r   c                	B    \        V P                  ;'       g    R R7      # )Nr|   )r;   rx   rN   s   &r   rP   DirInfo._to_dict   s    T]]%:%:d;;r   r   N)r   r   r   r   r>   rR   rx   rS   rI   rP   r   r   r   r   r   r      s4    D(HdO O
< <r   c                      ] tR t^t$ R]R&   R]R&   RtR]R&   R R	 lt]R
 R l4       tR R lt	]
R R l4       tR R lt]
R R l4       tR R ltR R ltRtR# )r	   r   urlr0   r3   NrA   subdirectoryc                    V ^8  d   QhRRRR/# )r   netlocr   r"   r   )r#   s   "r   r$   DirectUrl.__annotate__   s     # #s #s #r   c                	   R V9  d   V# VP                  R ^4      w  r#\        V P                  \        4      '       d%   V P                  P                  R8X  d
   VR8X  d   V# \
        P                  V4      '       d   V# V# )@git)rf   r'   r3   r   r?   
ENV_VAR_REmatch)rO   r   	user_passnetloc_no_user_passs   &&  r   _remove_auth_from_netloc"DirectUrl._remove_auth_from_netloc   sl    fM)/c1)=&	tyy'**		&U"MI&&M""r   c                   V ^8  d   QhRR/# r   r"   r   r   )r#   s   "r   r$   r      s     
 
c 
r   c                $   \         P                  P                  V P                  4      pV P	                  VP
                  4      p\         P                  P                  VP                  W!P                  VP                  VP                  34      pV# )zurl with user:password part removed unless it is formed with
environment variables as specified in PEP 610, or it is ``git``
in the case of a git URL.
)urllibparseurlsplitr   r   r   
urlunsplitschemepathqueryfragment)rO   purlr   surls   &   r   redacted_urlDirectUrl.redacted_url   sg     ||$$TXX...t{{;||&&[[&))TZZG
 r   c                   V ^8  d   QhRR/# )r   r"   rY   r   )r#   s   "r   r$   r      s     ' '$ 'r   c                	D    V P                  V P                  4       4       R # r\   )	from_dictto_dictrN   s   &r   validateDirectUrl.validate   s    t||~&r   c                    V ^8  d   QhRRRR/# )r   r   r   r"   r	   r   )r#   s   "r   r$   r      s     
 
. 
Y 
r   c                	>   \        \        V\        R 4      \        V\        R4      \	        \
        P                  \        V\        R4      4      \        P                  \        V\        R4      4      \        P                  \        V\        R4      4      .4      R7      # )r   r   rU   rv   r=   )r   r   r3   )
r	   r-   r   r*   r4   r   rI   rn   r   r   rG   s   &&r   r   DirectUrl.from_dict   sy    ae,an5 **44+HI&&tAtZ'@A&&tAtZ'@A

 
	
r   c                   V ^8  d   QhRR/# rL   r   )r#   s   "r   r$   r      s       r   c                	    \        V P                  V P                  R 7      pV P                  P	                  4       WP                  P
                  &   V# ))r   r   )r;   r   r   r3   rP   r>   )rO   ress   & r   r   DirectUrl.to_dict   sB    !!**
 #ii002IINN
r   c                    V ^8  d   QhRRRR/# )r   sr   r"   r	   r   )r#   s   "r   r$   r      s     , ,# ,) ,r   c                	L    V P                  \        P                  ! V4      4      # r\   )r   jsonloads)rH   r   s   &&r   	from_jsonDirectUrl.from_json   s    }}TZZ]++r   c                   V ^8  d   QhRR/# r   r   )r#   s   "r   r$   r      s     : : :r   c                	N    \         P                  ! V P                  4       R R7      # )T)	sort_keys)r   dumpsr   rN   s   &r   to_jsonDirectUrl.to_json   s    zz$,,.D99r   c                   V ^8  d   QhRR/# )r   r"   rw   r   )r#   s   "r   r$   r      s     E E4 Er   c                	r    \        V P                  \        4      ;'       d    V P                  P                  # r\   )r'   r3   r   rx   rN   s   &r   is_local_editableDirectUrl.is_local_editable   s%    $))W-DD$))2D2DDr   r   )r   r   r   r   rR   r   r   rs   r   r   rS   r   r   r   r   r   r   r   r   r   r	   r	      sr    	H
N#L*## 
 
' 
 
 , ,:E Er   )r	   r
   r   r   r   r\   ) __doc__
__future__r   r   reurllib.parser   collections.abcr   dataclassesr   typingr   r   r   r   __all__r   DIRECT_URL_METADATA_NAMEcompiler   	Exceptionr
   r*   r-   r4   r;   r   r   r   r0   r	   r   r   r   <module>r      s     "  	  $ ! 0 0 CL, ZZIJ
	y 	>
 
 
 
2)@ )@X < < < gw./ AE AE AEr   