
    ch
                         S r S/rSSKrSSKJr  SSKJr  SSKJrJ	r	J
r
JrJr  SSKJr  \(       a  SS	KJr  SS
KJr   " S S\5      rg)zHModule implementing a remote object allowing easy access to git remotes.RemoteReference    N)	join_path   )Head)AnyIteratorNoReturnTYPE_CHECKINGUnion)PathLike)Remote)Repoc                      ^  \ rS rSrSr\R                  r\  SSSS\	\
S4   S\	S   S	\S
\S\S    4U 4S jjj5       r\SSSS S
\SS4S j5       r\S	\S
\S\4S j5       rSrU =r$ )r      z&A reference pointing to a remote head.Nrepor   common_pathremote)r   Nargskwargsreturnc                 |   > U=(       d    U R                   nUb  [        U[        U5      5      n[        TU ]  X5      $ )zLIterate remote references, and if given, constrain them to the given remote.)_common_path_defaultr   strsuper
iter_items)clsr   r   r   r   r   	__class__s         bC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\git/refs/remote.pyr   RemoteReference.iter_items    s=     "=S%=%=#KV=K w!$44    refsc                    UR                   R                  " SS/UQ76   U H  n [        R                  " [        R                  R                  UR                  UR                  5      5         [        R                  " [        R                  R                  UR                  UR                  5      5        M     g! [         a     NZf = f! [         a     M  f = f)zDelete the given remote references.

:note:
    `kwargs` are given for comparability with the base class method as we
    should not narrow the signature.
z-dz-rN)	gitbranchosremovepathjoin
common_dirOSErrorgit_dir)r   r   r!   r   refs        r   deleteRemoteReference.delete5   s     	d*T* C		"'',,tAB		"'',,t||SXX>?     s%   AB;.AC;
CC
CCc                     [        S5      e)zERaise :exc:`TypeError`. Defined so the ``create`` method is disabled.z*Cannot explicitly create remote references)	TypeError)r   r   r   s      r   createRemoteReference.createL   s     DEEr     )NN)__name__
__module____qualname____firstlineno____doc__r   _remote_common_path_defaultr   classmethodr   r   r   r   r   r-   r	   r1   __static_attributes____classcell__)r   s   @r   r   r      s    0;; .2(,	55 8T>*5 n%	5
 5 5 
#	$5 5( & ): c d  , F3 F# F( F Fr    )r8   __all__r%   git.utilr   headr   typingr   r   r	   r
   r   	git.typesr   
git.remoter   git.repor   r   r3   r    r   <module>rD      s?    O
 	   A @ !
4Fd 4Fr    