
    ,Of                     >    d dl mZmZ d dlmZmZmZ  G d de      Zy)    )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ede
fd	       Zd
eeef   ddfdZy)Pathz
    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                 \    t         | _        t         | _        t         | _        t         | _        y N)r   _path_title_count_uniquesselfs    +lib/python3.12/site-packages/github/Path.py_initAttributeszPath._initAttributes6   s    %+
&,&,(.    c                     | j                  | j                  j                  | j                  j                  | j                  j                  | j
                  j                  d      S )N)pathtitlecountuniques)get__repr__r   valuer   r   r   r   s    r   __repr__zPath.__repr__<   sN    

((****==..	
 	
r   c                 .    | j                   j                  S r   )r   r   r   s    r   r   z	Path.pathF   s    zzr   c                 .    | j                   j                  S r   )r   r   r   s    r   r   z
Path.titleJ       {{   r   c                 .    | j                   j                  S r   )r   r   r   s    r   r   z
Path.countN   r    r   c                 .    | j                   j                  S r   )r   r   r   s    r   r   zPath.uniquesR   s    }}"""r   
attributesc                     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   )_makeStringAttributer   r   _makeIntAttributer   r   )r   r#   s     r   _useAttributeszPath._useAttributesV   s    Z22:f3EFDJj 33Jw4GHDK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    /
# 
  c     !s ! ! !s ! ! # # #Jc3h JD Jr   r	   N)typingr   r   github.GithubObjectr   r   r   r	   r/   r   r   <module>r2      s    P  M M1J% 1Jr   