
    #Ii                     R    S SK rS SKr " S S\R                  R                  5      rg)    Nc                       \ rS rSrSr " S S\R                  R                  5      r\	S 5       r
\	S 5       r\	S 5       rS rS	 rS
rg)StatsContributor   z
This class represents StatsContributors. The reference can be found here https://docs.github.com/en/rest/reference/repos#get-all-contributor-commit-activity
c                   d    \ rS rSrSr\S 5       r\S 5       r\S 5       r\S 5       r	S r
S rS	rg
)StatsContributor.Week$   z;
This class represents weekly statistics of a contributor.
c                 .    U R                   R                  $ )z
:type: datetime.datetime
)_wvalueselfs    =/venv/lib/python3.13/site-packages/github/StatsContributor.pywStatsContributor.Week.w)       
 77==     c                 .    U R                   R                  $ z
:type: int
)_ar   r   s    r   aStatsContributor.Week.a0   r   r   c                 .    U R                   R                  $ r   )_dr   r   s    r   dStatsContributor.Week.d7   r   r   c                 .    U R                   R                  $ r   )_cr   r   s    r   cStatsContributor.Week.c>   r   r   c                     [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        g N)githubGithubObjectNotSetr
   r   r   r   r   s    r   _initAttributes%StatsContributor.Week._initAttributesE   sN    ))00DG))00DG))00DG))00DGr   c                     SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        g g )Nr   r   r   r   )_makeTimestampAttributer
   _makeIntAttributer   r   r   r   
attributess     r   _useAttributes$StatsContributor.Week._useAttributesK   s    j 66z#Gj 00CAj 00CAj 00CA !r   )r   r   r   r
   N)__name__
__module____qualname____firstlineno____doc__propertyr   r   r   r   r%   r,   __static_attributes__ r   r   Weekr   $   sb    	 
	! 
	! 
	! 
	! 
	! 
	! 
	! 
	!	1	Br   r6   c                 .    U R                   R                  $ )z,
:type: :class:`github.NamedUser.NamedUser`
)_authorr   r   s    r   authorStatsContributor.authorU   s    
 ||!!!r   c                 .    U R                   R                  $ r   )_totalr   r   s    r   totalStatsContributor.total\       
 {{   r   c                 .    U R                   R                  $ )z
:type: list of :class:`.Week`
)_weeksr   r   s    r   weeksStatsContributor.weeksc   r?   r   c                     [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        g r!   )r"   r#   r$   r8   r<   rA   r   s    r   r%    StatsContributor._initAttributesj   s;    **11))00))00r   c                    SU;   a2  U R                  [        R                  R                  US   5      U l        SU;   a  U R	                  US   5      U l        SU;   a%  U R                  U R                  US   5      U l        g g )Nr9   r=   rB   )	_makeClassAttributer"   	NamedUserr8   r)   r<   _makeListOfClassesAttributer6   rA   r*   s     r   r,   StatsContributor._useAttributeso   s    z!33  **Jx,@DL j 00G1DEDKj ::		:g.DK !r   )r8   r<   rA   N)r.   r/   r0   r1   r2   r"   r#   NonCompletableGithubObjectr6   r3   r9   r=   rB   r%   r,   r4   r5   r   r   r   r      sh    /Bv""== /Bb " " ! ! ! !1

r   r   )github.GithubObjectr"   github.NamedUserr#   rK   r   r5   r   r   <module>rN      s'   6  Zv**EE Zr   