
    ,Of;                    R    d dl mZ d dlmZ d dlmZ d dlmZmZmZ  G d de      Z	y)    )annotations)datetime)Any)	AttributeNonCompletableGithubObjectNotSetc                      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edd       Zedd       Zedd       ZddZy)Topicz
    This class represents topics as used by https://github.com/topics. The object reference can be found here https://docs.github.com/en/rest/reference/search#search-topics
    c                    t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _	        t         | _
        t         | _        y N)r   _name_display_name_short_description_description_created_by	_released_created_at_updated_at	_featured_curated_scoreselfs    ,lib/python3.12/site-packages/github/Topic.py_initAttributeszTopic._initAttributes5   sU    %+
-328,2+1)/0606*0)/(.    c                P    | j                  d| j                  j                  i      S )Nname)get__repr__r   valuer   s    r   __repr__zTopic.__repr__B   s"    )9)9 :;;r   c                .    | j                   j                  S r   )r   r    r   s    r   r   z
Topic.nameE   s    zzr   c                .    | j                   j                  S r   )r   r    r   s    r   display_namezTopic.display_nameI   s    !!'''r   c                .    | j                   j                  S r   )r   r    r   s    r   short_descriptionzTopic.short_descriptionM   s    &&,,,r   c                .    | j                   j                  S r   )r   r    r   s    r   descriptionzTopic.descriptionQ   s      &&&r   c                .    | j                   j                  S r   )r   r    r   s    r   
created_byzTopic.created_byU       %%%r   c                .    | j                   j                  S r   )r   r    r   s    r   releasedzTopic.releasedY       ~~###r   c                .    | j                   j                  S r   )r   r    r   s    r   
created_atzTopic.created_at]   r+   r   c                .    | j                   j                  S r   )r   r    r   s    r   
updated_atzTopic.updated_ata   r+   r   c                .    | j                   j                  S r   )r   r    r   s    r   featuredzTopic.featurede   r.   r   c                .    | j                   j                  S r   )r   r    r   s    r   curatedzTopic.curatedi   s    }}"""r   c                .    | j                   j                  S r   )r   r    r   s    r   scorezTopic.scorem   s    {{   r   c                   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         | _        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
         | _        d|v r| j                  |d         | _        y y )Nr   r$   r&   r(   r*   r-   r0   r2   r4   r6   r8   )_makeStringAttributer   r   r   r   r   r   _makeDatetimeAttributer   r   _makeBoolAttributer   r   _makeFloatAttributer   )r   
attributess     r   _useAttributeszTopic._useAttributesq   sc   Z22:f3EFDJZ'!%!:!::n;U!VD*,&*&?&?
K^@_&`D#J& $ 9 9*]:S TD:%#88L9QRD#!66z*7MNDN:%#:::l;STD:%#:::l;STD#!44Z
5KLDN
" 33Jy4IJDMj 22:g3FGDK !r   N)returnNone)r@   str)r@   r   )r@   bool)r@   float)r>   zdict[str, Any]r@   rA   )__name__
__module____qualname____doc__r   r!   propertyr   r$   r&   r(   r*   r-   r0   r2   r4   r6   r8   r?    r   r   r
   r
   0   s    /<     ( ( - - ' ' & & $ $ & & & & $ $ # # ! !Hr   r
   N)

__future__r   r   typingr   github.GithubObjectr   r   r   r
   rJ   r   r   <module>rN      s(   P #   M MWH& WHr   