Ë
    Ö—ÄjÀ  ã                  ób   — d dl mZ d dlZd dlmZ d dlmZ d dlm	Z	m
Z
mZmZmZ  G d„ de
«      Zy)é    )ÚannotationsN)ÚAny)ÚConsts)Ú	AttributeÚCompletableGithubObjectÚNotSetÚOptÚis_optionalc                  óÌ   — e Zd ZdZdd„Zdd„Zedd„«       Zedd„«       Zedd„«       Z	edd„«       Z
edd„«       Zedd	„«       Zedd
„«       Zedd„«       Zdd„Zefdd„Zdd„Zy)ÚLabelaW  
    This class represents Labels.

    The reference can be found here
    https://docs.github.com/en/rest/reference/issues#labels

    The OpenAPI schema can be found at

    - /components/schemas/issue-event-label
    - /components/schemas/issue-search-result-item/properties/labels/items
    - /components/schemas/issue/properties/labels/items/oneOf/1
    - /components/schemas/label
    - /components/schemas/nullable-issue/properties/labels/items/oneOf/1
    - /components/schemas/pull-request-simple/properties/labels/items
    - /components/schemas/pull-request/properties/labels/items

    c                óž   — t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        y ©N)r   Ú_colorÚ_defaultÚ_descriptionÚ_idÚ_nameÚ_node_idÚ_url©Úselfs    úQC:\Users\pivot\Documents\cueki\casual-preloader\Lib\site-packages\github/Label.pyÚ_initAttributeszLabel._initAttributesH   s4   € Ü&,ˆŒÜ)/ˆŒÜ,2ˆÔÜ#)ˆŒÜ%+ˆŒ
Ü(.ˆŒÜ$*ˆ�	ó    c                óP   — | j                  d| j                  j                  i«      S )NÚname)Úget__repr__r   Úvaluer   s    r   Ú__repr__zLabel.__repr__Q   s"   € Ø×Ñ ¨¯©×)9Ñ)9Ð :Ó;Ð;r   c                óT   — t         j                  j                  | j                  «      S r   )ÚurllibÚparseÚquoter   r   s    r   Ú	_identityzLabel._identityT   s   € ä�|‰|×!Ñ! $§)¡)Ó,Ð,r   c                ód   — | j                  | j                  «       | j                  j                  S r   )Ú_completeIfNotSetr   r   r   s    r   ÚcolorzLabel.colorX   s$   € à×Ñ˜tŸ{™{Ô+Ø�{‰{× Ñ Ð r   c                ód   — | j                  | j                  «       | j                  j                  S r   )r&   r   r   r   s    r   ÚdefaultzLabel.default]   ó$   € à×Ñ˜tŸ}™}Ô-Ø�}‰}×"Ñ"Ð"r   c                ód   — | j                  | j                  «       | j                  j                  S r   )r&   r   r   r   s    r   ÚdescriptionzLabel.descriptionb   s(   € à×Ñ˜t×0Ñ0Ô1Ø× Ñ ×&Ñ&Ð&r   c                ód   — | j                  | j                  «       | j                  j                  S r   )r&   r   r   r   s    r   ÚidzLabel.idg   s"   € à×Ñ˜tŸx™xÔ(Ø�x‰x�~‰~Ðr   c                ód   — | j                  | j                  «       | j                  j                  S r   )r&   r   r   r   s    r   r   z
Label.namel   s$   € à×Ñ˜tŸz™zÔ*Ø�z‰z×ÑÐr   c                ód   — | j                  | j                  «       | j                  j                  S r   )r&   r   r   r   s    r   Únode_idzLabel.node_idq   r*   r   c                ód   — | j                  | j                  «       | j                  j                  S r   )r&   r   r   r   s    r   Úurlz	Label.urlv   s"   € à×Ñ˜tŸy™yÔ)Ø�y‰y�‰Ðr   c                óV   — | j                   j                  d| j                  «      \  }}y)z�
        :calls: `DELETE /repos/{owner}/{repo}/labels/{name} <https://docs.github.com/en/rest/reference/issues#labels>`_
        ÚDELETEN)Ú
_requesterÚrequestJsonAndCheckr3   )r   ÚheadersÚdatas      r   ÚdeletezLabel.delete{   s"   € ð Ÿ™×;Ñ;¸HÀdÇhÁhÓO‰ˆ‘r   c                óz  — t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        |t        «      sJ |«       ‚t        j                  |||dœ«      }| j
                  j                  d| j                  |dt        j                  i¬«      \  }}| j                  |«       | j                  «        y)z€
        :calls: `PATCH /repos/{owner}/{repo}/labels/{name} <https://docs.github.com/en/rest/reference/issues#labels>`_
        )Únew_namer'   r,   ÚPATCHÚAccept)Úinputr8   N)Ú
isinstanceÚstrr
   r   Úremove_unset_itemsr6   r7   r3   r   Ú&mediaTypeLabelDescriptionSearchPreviewÚ_useAttributesÚ_set_complete)r   r   r'   r,   Úpost_parametersr8   r9   s          r   Úeditz
Label.edit�   s°   € ô ˜$¤Ô$Ð* dÓ*Ð$Ü˜%¤Ô%Ð, uÓ,Ð%Ü˜;¬Ô,Ð9¨kÓ9Ð,Ü ×3Ñ3ÀÐPUÐfqÑ4rÓsˆØŸ™×;Ñ;ØØ�H‰HØ!Øœv×LÑLÐMð	 <ó 
‰ˆ�ð 	×Ñ˜DÔ!Ø×ÑÕr   c                óH  — d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        nUd|v rQ|d   rL|d   j                  d«      d   }t        j                  j                  |«      }| j                  |«      | _        d	|v r| j                  |d	   «      | _        d|v r| j                  |d   «      | _        y y )
Nr'   r)   r,   r.   r   r3   Ú/éÿÿÿÿr1   )Ú_makeStringAttributer   Ú_makeBoolAttributer   r   Ú_makeIntAttributer   r   Úsplitr!   r"   Úunquoter   r   )r   Ú
attributesÚquoted_namer   s       r   rD   zLabel._useAttributes’   s0  € Ø�jÑ Ø×3Ñ3°J¸wÑ4GÓHˆDŒKØ˜
Ñ"Ø ×3Ñ3°J¸yÑ4IÓJˆDŒMØ˜JÑ&Ø $× 9Ñ 9¸*À]Ñ:SÓ TˆDÔØ�:ÑØ×-Ñ-¨j¸Ñ.>Ó?ˆDŒHØ�ZÑØ×2Ñ2°:¸fÑ3EÓFˆD�JØ�jÑ  Z°Ò%6Ø$ UÑ+×1Ñ1°#Ó6°rÑ:ˆKÜ—<‘<×'Ñ'¨Ó4ˆDØ×2Ñ2°4Ó8ˆDŒJØ˜
Ñ"Ø ×5Ñ5°jÀÑ6KÓLˆDŒMØ�JÑØ×1Ñ1°*¸UÑ2CÓDˆD�Ið r   N)ÚreturnÚNone)rR   rA   )rR   Úbool)rR   Úint)r   rA   r'   rA   r,   zOpt[str]rR   rS   )rP   zdict[str, Any]rR   rS   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Úpropertyr$   r'   r)   r,   r.   r   r1   r3   r:   r   rG   rD   © r   r   r   r   5   sÉ   „ ñó$+ó<ð ò-ó ð-ð ò!ó ð!ð ò#ó ð#ð ò'ó ð'ð òó ðð ò ó ð ð ò#ó ð#ð òó ðóPð CIô ô"Er   r   )Ú
__future__r   Úurllib.parser!   Útypingr   Úgithubr   Úgithub.GithubObjectr   r   r   r	   r
   r   r[   r   r   Ú<module>ra      s+   ðõX #ã Ý å ß \Õ \ôoEÐ#õ oEr   