Ë
    Ö—Äj�   ã                  óê   — d dl mZ d dlZd dlmZ  G d„ de«      Z G d„ de«      Z G d„ d	e«      Z G d
„ de«      Z	 G d„ de«      Z
 G d„ de
«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Zy)é    )ÚannotationsN)ÚAnyc                  ó’   ‡ — e Zd ZdZ	 	 	 d		 	 	 	 	 	 	 d
ˆ fd„Zedd„«       Zedd„«       Zedd„«       Zedd„«       Z	dd„Z
dd„Zˆ xZS )ÚGithubExceptiona0  
    Error handling in PyGithub is done with exceptions. This class is the base of all exceptions raised by PyGithub
    (but :class:`github.GithubException.BadAttributeException`).

    Some other types of exceptions might be raised by underlying libraries, for example for network-related issues.

    c                óp   •— t         ‰| �  «        || _        || _        || _        || _        ||||f| _        y ©N)ÚsuperÚ__init__Ú_GithubException__statusÚ_GithubException__dataÚ_GithubException__headersÚ_GithubException__messageÚargs)ÚselfÚstatusÚdataÚheadersÚmessageÚ	__class__s        €ú[C:\Users\pivot\Documents\cueki\casual-preloader\Lib\site-packages\github/GithubException.pyr
   zGithubException.__init__:   s<   ø€ ô 	‰ÑÔØˆŒØˆŒØ ˆŒØ ˆŒØ˜T 7¨GÐ4ˆ�	ó    c                ó   — | j                   S r   )r   ©r   s    r   r   zGithubException.messageH   s   € à�~‰~Ðr   c                ó   — | j                   S )z8
        The status returned by the Github API.
        )r   r   s    r   r   zGithubException.statusL   s   € ð
 �}‰}Ðr   c                ó   — | j                   S )z@
        The (decoded) data returned by the Github API.
        )r   r   s    r   r   zGithubException.dataS   s   € ð
 �{‰{Ðr   c                ó   — | j                   S )z9
        The headers returned by the Github API.
        )r   r   s    r   r   zGithubException.headersZ   s   € ð
 �~‰~Ðr   c                óV   — | j                   j                  › d| j                  «       › d�S )NÚ(Ú))r   Ú__name__Ú__str__r   s    r   Ú__repr__zGithubException.__repr__a   s'   € Ø—.‘.×)Ñ)Ð*¨!¨D¯L©L«NÐ+;¸1Ð=Ð=r   c                ó  — | j                   r| j                   › d| j                  › �}n| j                  › }| j                  �J| j                  }t        |t        «      r|j                  dd¬«      }|dt        j                  |«      z   z  }|S )Nz: zutf-8Úreplace)ÚerrorsÚ )r   r   r   Ú
isinstanceÚbytesÚdecodeÚjsonÚdumps)r   Úmsgr   s      r   r!   zGithubException.__str__d   sy   € Ø�>Š>Ø—^‘^Ð$ B t§{¡{ mÐ4‰Cà—[‘[�MˆCà�9‰9Ð Ø—9‘9ˆDÜ˜$¤Ô&Ø—{‘{ 7°9�{Ó=�Ø�3œŸ™ DÓ)Ñ)Ñ)ˆCàˆ
r   )NNN)r   Úintr   r   r   údict[str, str] | Noner   ú
str | None)Úreturnr/   )r0   r-   ©r0   r   )r0   r.   )r0   Ústr)r    Ú
__module__Ú__qualname__Ú__doc__r
   Úpropertyr   r   r   r   r"   r!   Ú__classcell__©r   s   @r   r   r   1   s˜   ø„ ñð Ø)-Ø"ð5àð5ð ð5ð 'ð	5ð
 õ5ð òó ðð òó ðð òó ðð òó ðó>÷r   r   c                  ó   — e Zd ZdZy)ÚBadCredentialsExceptionzm
    Exception raised in case of bad credentials (when Github API replies with a 401 or 403 HTML status)
    N©r    r3   r4   r5   © r   r   r:   r:   s   ó   „ òr   r:   c                  ó   — e Zd ZdZy)ÚUnknownObjectExceptionzs
    Exception raised when a non-existing object is requested (when Github API replies with a 404 HTML status)
    Nr;   r<   r   r   r?   r?   y   r=   r   r?   c                  ó   — e Zd ZdZy)ÚBadUserAgentExceptionz�
    Exception raised when request is sent with a bad user agent header (when Github API replies with a 403 bad user
    agent HTML status)
    Nr;   r<   r   r   rA   rA      ó   „ òr   rA   c                  ó   — e Zd ZdZy)ÚRateLimitExceededExceptionzƒ
    Exception raised when the rate limit is exceeded (when Github API replies with a 403 rate limit exceeded HTML
    status)
    Nr;   r<   r   r   rD   rD   †   rB   r   rD   c                  óR   ‡ — e Zd ZdZ	 	 	 	 d	 	 	 	 	 	 	 	 	 dˆ fd„Zedd„«       Zˆ xZS )ÚRateLimitExceededExceedsMaxWaitzÇ
    Exception raised when the wait required to respect a rate limit reset exceeds the configured
    ``max_rate_limit_wait`` on ``GithubRetry``, instead of blocking until the rate limit resets.
    c                ó8   •— t         ‰| �  ||||«       || _        y r   )r	   r
   Ú&_RateLimitExceededExceedsMaxWait__wait)r   r   r   r   r   Úwaitr   s         €r   r
   z(RateLimitExceededExceedsMaxWait.__init__“   s   ø€ ô 	‰Ñ˜  w°Ô8Øˆ�r   c                ó   — | j                   S )z 
        The backoff in seconds that would have been required to respect the rate limit reset, before it was capped by
        ``max_rate_limit_wait``.
        )rH   r   s    r   rI   z$RateLimitExceededExceedsMaxWait.waitž   s   € ð �{‰{Ðr   )NNNN)
r   r-   r   r   r   r.   r   r/   rI   úfloat | None)r0   rK   )r    r3   r4   r5   r
   r6   rI   r7   r8   s   @r   rF   rF   �   s_   ø„ ñð Ø)-Ø"Ø!ð	àð	ð ð	ð 'ð		ð
 ð	ð õ	ð òó ôr   rF   c                  ó^   — e Zd ZdZ	 	 	 	 	 	 dd„Zedd„«       Ze	 	 d	d„«       Zed
d„«       Zy)ÚBadAttributeExceptionzP
    Exception raised when Github returns an attribute with the wrong type.
    c                ó.   — || _         || _        || _        y r   )Ú#_BadAttributeException__actualValueÚ$_BadAttributeException__expectedTypeÚ/_BadAttributeException__transformationException)r   ÚactualValueÚexpectedTypeÚtransformationExceptions       r   r
   zBadAttributeException.__init__¬   s   € ð )ˆÔØ*ˆÔØ)@ˆÕ&r   c                ó   — | j                   S )z/
        The value returned by Github.
        )rO   r   s    r   Úactual_valuez"BadAttributeException.actual_value»   s   € ð
 ×!Ñ!Ð!r   c                ó   — | j                   S )z-
        The type PyGithub expected.
        )rP   r   s    r   Úexpected_typez#BadAttributeException.expected_typeÂ   s   € ð ×"Ñ"Ð"r   c                ó   — | j                   S )zN
        The exception raised when PyGithub tried to parse the value.
        )rQ   r   s    r   Útransformation_exceptionz.BadAttributeException.transformation_exceptionÐ   s   € ð
 ×-Ñ-Ð-r   N)rR   r   rS   z‚dict[tuple[type[str], type[str]], type[dict]] | tuple[type[str], type[str]] | list[type[dict]] | list[tuple[type[str], type[str]]]rT   úException | Noner1   )r0   z‚list[type[dict]] | tuple[type[str], type[str]] | dict[tuple[type[str], type[str]], type[dict]] | list[tuple[type[str], type[str]]])r0   r[   )	r    r3   r4   r5   r
   r6   rV   rX   rZ   r<   r   r   rM   rM   §   sr   „ ñðAàðAð0ð	Að "2óAð ò"ó ð"ð ð#ð	,ò#ó ð#ð ò.ó ñ.r   rM   c                  ó   — e Zd ZdZy)ÚTwoFactorExceptionza
    Exception raised when Github requires a onetime password for two-factor authentication.
    Nr;   r<   r   r   r]   r]   Ø   r=   r   r]   c                  ó   — e Zd ZdZy)ÚIncompletableObjectzy
    Exception raised when we can not request an object from Github because the data returned did not include a URL.
    Nr;   r<   r   r   r_   r_   Þ   r=   r   r_   )Ú
__future__r   r*   Útypingr   Ú	Exceptionr   r:   r?   rA   rD   rF   rM   r]   r_   r<   r   r   Ú<module>rc      s€   ðõV #ã Ý ô?�iô ?ôD˜oô ô˜_ô ô˜Oô ô ô ôÐ&@ô ô4..˜Iô ..ôb˜ô ô˜/õ r   