
    #Ii                     ^    S SK rS SKrSSKJr   " S S\R                  R                  5      rg)    N   )Constsc                       \ rS rSrSrS r\S 5       r\S 5       r\S 5       r	\S 5       r
S r\R                  R                  4S	 jr\S
 5       rS rS rSrg)Label'   zw
This class represents Labels. The reference can be found here https://docs.github.com/en/rest/reference/issues#labels
c                 P    U R                  SU R                  R                  05      $ )Nname)get__repr___namevalueselfs    2/venv/lib/python3.13/site-packages/github/Label.py__repr__Label.__repr__,   s"    )9)9 :;;    c                 d    U R                  U R                  5        U R                  R                  $ z
:type: string
)_completeIfNotSet_colorr   r   s    r   colorLabel.color/   s&    
 	t{{+{{   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _descriptionr   r   s    r   descriptionLabel.description7   s*    
 	t001  &&&r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   r   r   r   s    r   r	   
Label.name?   s&    
 	tzz*zzr   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _urlr   r   s    r   url	Label.urlG   s$    
 	tyy)yyr   c                 T    U R                   R                  SU R                  5      u  pg)z~
:calls: `DELETE /repos/{owner}/{repo}/labels/{name} <https://docs.github.com/en/rest/reference/issues#labels>`_
:rtype: None
DELETEN)
_requesterrequestJsonAndCheckr!   )r   headersdatas      r   deleteLabel.deleteO   s"    
 ;;HdhhOr   c                    [        U[        5      (       d   U5       e[        U[        5      (       d   U5       eU[        R                  R                  L d  [        U[        5      (       d   U5       eUUS.nU[        R                  R                  La  X4S'   U R
                  R                  SU R                  US[        R                  0S9u  pVU R                  U5        g)z
:calls: `PATCH /repos/{owner}/{repo}/labels/{name} <https://docs.github.com/en/rest/reference/issues#labels>`_
:param name: string
:param color: string
:param description: string
:rtype: None
)new_namer   r   PATCHAccept)inputr'   N)
isinstancestrgithubGithubObjectNotSetr%   r&   r!   r   &mediaTypeLabelDescriptionSearchPreview_useAttributes)r   r	   r   r   post_parametersr'   r(   s          r   edit
Label.editV   s     $$$*d*$%%%,u,%f11888J=
 =
 		 
 
 f11888-8M*;;HH!vLLM	 < 
 	D!r   c                 T    [         R                  R                  U R                  5      $ N)urllibparsequoter	   r   s    r   	_identityLabel._identityq   s    ||!!$)),,r   c                     [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        g r;   )r2   r3   r4   r   r   r   r    r   s    r   _initAttributesLabel._initAttributesu   sO    ))00"//66((//
''..	r   c                     SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        g g )Nr   r   r	   r!   )_makeStringAttributer   r   r   r    )r   
attributess     r   r6   Label._useAttributes{   s    j 33Jw4GHDKJ& $ 9 9*]:S TDZ22:f3EFDJJ11*U2CDDI r   )r   r   r   r    N)__name__
__module____qualname____firstlineno____doc__r   propertyr   r   r	   r!   r)   r2   r3   r4   r8   r?   rB   r6   __static_attributes__ r   r   r   r   '   s    < ! ! ' '      P -3,?,?,F,F "6 - -/Er   r   )	urllib.parser<   github.GithubObjectr2    r   r3   CompletableGithubObjectr   rO   r   r   <module>rT      s-   @   \EF77 \Er   