
    ,Of                     J    d dl m Z  d dlmZmZ d dlmZmZmZ  G d de      Zy)    )datetime)AnyDict)	AttributeNonCompletableGithubObjectNotSetc                       e Zd ZdZddZdefdZedefd       Z	ede
fd       Zede
fd       Zd	eeef   ddfd
Zy)Viewz
    This class represents a popular Path for a GitHub repository.

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

    returnNc                 F    t         | _        t         | _        t         | _        y N)r   
_timestamp_count_uniquesselfs    +lib/python3.12/site-packages/github/View.py_initAttributeszView._initAttributes7   s    /5&,(.    c                     | j                  | j                  j                  | j                  j                  | j                  j                  d      S )N)	timestampcountuniques)get__repr__r   valuer   r   r   s    r   __repr__zView.__repr__<   sA    !__22**==..
 	
r   c                 .    | j                   j                  S r   )r   r   r   s    r   r   zView.timestampE   s    $$$r   c                 .    | j                   j                  S r   )r   r   r   s    r   r   z
View.countI   s    {{   r   c                 .    | j                   j                  S r   )r   r   r   s    r   r   zView.uniquesM   s    }}"""r   
attributesc                     d|v r| j                  |d         | _        d|v r| j                  |d         | _        d|v r| j                  |d         | _        y y )Nr   r   r   )_makeDatetimeAttributer   _makeIntAttributer   r   )r   r    s     r   _useAttributeszView._useAttributesQ   sd    *$"99*[:QRDOj 00G1DEDK
" 22:i3HIDM #r   )r   N)__name__
__module____qualname____doc__r   strr   propertyr   r   intr   r   r   r   r$    r   r   r
   r
   .   s    /

# 
 %8 % % !s ! ! # # #Jc3h JD Jr   r
   N)	r   typingr   r   github.GithubObjectr   r   r   r
   r,   r   r   <module>r/      s#   P   M M)J% )Jr   