
    ,Of                     f    d dl mZmZmZ d dlZd dlZ G d dej                  j                        Z	y)    )AnyDictTupleNc                   \    e Zd ZU dZeeeef   ef   ed<   dededefdZddZ	d	e
ddfd
Zy)StatsPunchCardz
    This class represents StatsPunchCards.

    The reference can be found here
    https://docs.github.com/en/rest/reference/repos#get-the-hourly-commit-count-for-each-day

    _dictdayhourreturnc                 $    | j                   ||f   S )z)
        Get a specific element.
        r   )selfr	   r
   s      5lib/python3.12/site-packages/github/StatsPunchCard.pygetzStatsPunchCard.get9   s     zz3+&&    Nc                     i | _         y Nr   )r   s    r   _initAttributeszStatsPunchCard._initAttributes?   s	    
r   
attributesc                 <    |D ]  \  }}}|| j                   ||f<    y r   r   )r   r   r	   r
   commitss        r   _useAttributeszStatsPunchCard._useAttributesB   s*    ", 	.Cw&-DJJT{#	.r   )r   N)__name__
__module____qualname____doc__r   r   int__annotations__r   r   r   r    r   r   r   r   .   sS     c3h$%%'s '# '# '. . .r   r   )
typingr   r   r   github.GithubObjectgithubgithub.NamedUserGithubObjectNonCompletableGithubObjectr   r   r   r   <module>r&      s,   P $ #  .V((CC .r   