
    _Ogb                     n    S r SSKJr  SSKJr  SSKJr   " S S\5      r " S S	\5      r " S
 S\5      r	g)z'Module containing the logic for labels.    )dumps   )requires_auth)
GitHubCorec                   R    \ rS rSrSS0rS rS rS r\S 5       r	\SS	 j5       r
S
rg)_Label   Acceptz,application/vnd.github.symmetra-preview+jsonc                 b    US   U l         US   U l        US   U l        U R                   U l        g )Nurlcolorname)_apir   r   _uniq)selflabels     Y/Users/admin/workspace/ai/Jarvis/env/lib/python3.13/site-packages/github3/issues/label.py_update_attributes_Label._update_attributes   s.    %L	7^
&M	YY
    c                 $    SR                  U 5      $ )Nz<{0.class_name} [{0.name}]>)formatr   s    r   _repr_Label._repr   s    ,33D99r   c                     U R                   $ N)r   r   s    r   __str___Label.__str__   s    yyr   c                 Z    U R                  U R                  U R                  5      SS5      $ )zaDelete this label.

:returns:
    True if successfully deleted, False otherwise
:rtype:
    bool
   i  )_boolean_deleter   r   s    r   delete_Label.delete   s$     }}T\\$))4c3??r   Nc                    SnU(       a`  U(       aY  US   S:X  a  USS nXS.nUb  X5S'   U R                  U R                  [        U5      U R                  S9nU R	                  US5      nU(       a  U R                  U5        g	g
)a(  Update this label.

:param str name:
    (required), new name of the label
:param str color:
    (required), color code, e.g., 626262, no leading '#'
:param str description:
    (optional), new description of the label
:returns:
    True if successfully updated, False otherwise
:rtype:
    bool
Nr   #   )r   r   description)dataheaders   TF)_patchr   r   SYMMETRA_PREVIEW_HEADERS_jsonr   )r   r   r   r)   jsonr*   resps          r   update_Label.update$   s     EQx3ab	 1D&&1]#;;		4[55  D
 ::dC(D##D)r   )r   r   r   r   r   )__name__
__module____qualname____firstlineno__r.   r   r   r   r   r$   r2   __static_attributes__ r   r   r   r      sI    @ : @ @ ! !r   r   c                       \ rS rSrSrS rSrg)
ShortLabelI   aF  A representation of a label object defined on a repository.

See also: http://developer.github.com/v3/issues/labels/

This object has the following attributes::

.. attribute:: color

    The hexadecimeal representation of the background color of this label.

.. attribute:: name

    The name (display label) for this label.
r9   N)r4   r5   r6   r7   __doc__
class_namer8   r9   r   r   r;   r;   I   s     Jr   r;   c                   0   ^  \ rS rSrSrS rU 4S jrSrU =r$ )Label\   a  A representation of a label object defined on a repository.

See also: http://developer.github.com/v3/issues/labels/

This object has the following attributes::

.. attribute:: color

    The hexadecimeal representation of the background color of this label.

.. attribute:: description

    The description for this label.

.. attribute:: name

    The name (display label) for this label.
c                 8   > [         TU ]  U5        US   U l        g )Nr)   )superr   r)   )r   r   	__class__s     r   r   Label._update_attributesr   s    "5) /r   )r)   )	r4   r5   r6   r7   r=   r>   r   r8   __classcell__)rD   s   @r   r@   r@   \   s    & J0 0r   r@   N)
r=   r0   r   
decoratorsr   modelsr   r   r;   r@   r9   r   r   <module>rI      s6    -  & >Z >B &0F 0r   