
    #Ii                         S SK r S SKrS SKrS SKJr  S SKrS SKrS SKrS SK	rS SK
rS SKrS SKrS SKrS SKrS SKJr  SSKJrJrJrJrJrJrJrJr  SSKJr  SSKJr   " S S	5      r\R8                  rg)
    N)List)Auth   )AuthenticatedUserConsts	GithubAppGitignoreTemplateHookDeliveryHookDescription	RateLimit
Repository)HookDeliverySummary)	Requesterc                   r   \ rS rSrSrSSSS\R                  \R                  \R                  \R                  SSSS4S jr
\S 5       r\R                  S 5       r\S 5       r\R                  S	 5       r\S
 5       r\S 5       rS r\S 5       r\R(                  R*                  4S jrS rS r\R(                  R*                  4S jrS r\R(                  R*                  4S jrS r\R(                  R*                  4S jrS4S jr\R(                  R*                  \R(                  R*                  4S jrS r S r!S r"\R(                  R*                  4S jr#\R(                  R*                  \R(                  R*                  4S jr$\R(                  R*                  \R(                  R*                  4S jr%\R(                  R*                  \R(                  R*                  4S jr&\R(                  R*                  \R(                  R*                  S4S  jr'\R(                  R*                  \R(                  R*                  4S! jr(S" r)\R(                  R*                  4S# jr*S$ r+S% r,S&\-S'\-S(\.4S) jr/S&\-S(\0\1   4S* jr2S+ r3S, r4S- r50 4S. jr6S5S/ jr7S0 r8S1 r9\R(                  R*                  4S2 jr:S3r;g)6GithubQ   z
This is the main class you instantiate to access the Github API v3. Optional parameters allow different authentication methods.
NTc           
         Ub  [        U[        5      (       d   U5       eUb  [        U[        5      (       d   U5       eUb  [        U[        5      (       d   U5       e[        U[        5      (       d   U5       e[        U[        5      (       d   U5       eUb  [        U[        5      (       d   U5       e[        U[        5      (       d   U5       e[        U	[        [        45      (       d   U	5       eU
bE  [        U
[        5      (       d0  [        U
[        R
                  R                  5      (       d   U
5       eUb  [        U[        5      (       d   U5       eUb&  [        U[        R                  5      (       d   U5       eUb0  [        R                  " S[        S9  [        R                  " X5      nOUb0  [        R                  " S[        S9  [        R                  " U5      nOQUb0  [        R                  " S[        S9  [        R                  " U5      nOUb  [        R                  " S[        S9  Un[        UUUUUU	U
U5      U l        g)a  
:param login_or_token: string deprecated, use auth=github.Auth.Login(...) or auth=github.Auth.Token(...) instead
:param password: string deprecated, use auth=github.Auth.Login(...) instead
:param jwt: string deprecated, use auth=github.Auth.AppAuth(...) or auth=github.Auth.AppAuthToken(...) instead
:param app_auth: github.AppAuthentication deprecated, use auth=github.Auth.AppInstallationAuth(...) instead
:param base_url: string
:param timeout: integer
:param user_agent: string
:param per_page: int
:param verify: boolean or string
:param retry: int or urllib3.util.retry.Retry object
:param pool_size: int
:param auth: authentication method
NzdArguments login_or_token and password are deprecated, please use auth=github.Auth.Login(...) insteadcategoryzUArgument login_or_token is deprecated, please use auth=github.Auth.Token(...) insteadzrArgument jwt is deprecated, please use auth=github.Auth.AppAuth(...) or auth=github.Auth.AppAuthToken(...) insteadz]Argument app_auth is deprecated, please use auth=github.Auth.AppInstallationAuth(...) instead)
isinstancestrintboolurllib3utilRetryr   warningswarnDeprecationWarningLoginTokenAppAuthTokenr   _Github__requester)selflogin_or_tokenpasswordjwtapp_authbase_urltimeout
user_agentper_pageverifyretry	pool_sizeauths                6/venv/lib/python3.13/site-packages/github/MainClass.py__init__Github.__init__[   s   < %NC)H)HX.XH:h#<#<FhF<{jc227C72(C((2(2('3''00'!Z
C%@%@L*L@(C((2(2(&4+..66.M%%%%!3!344	 		5  Jy#$>$>I	I>|z$		::@D@:MM6+
 ::n7D'MM6+
 ::n-D_MM= ,	 $$S)D!MMD+
 D$	
    c                 .    U R                   R                  $ )z
:type: bool
r#   FIX_REPO_GET_GIT_REFr$   s    r1   r7   Github.FIX_REPO_GET_GIT_REF   s    
 444r4   c                 $    XR                   l        g Nr6   r$   values     r1   r7   r9      s    05-r4   c                 .    U R                   R                  $ )z
:type: int
r#   r,   r8   s    r1   r,   Github.per_page   s    
 (((r4   c                 $    XR                   l        g r;   r?   r<   s     r1   r,   r@      s    $)!r4   c                     U R                   R                  u  pUS:  a  U R                  5         U R                   R                  $ )zV
First value is requests remaining, second value is request limit.

:type: (int, int)
r   )r#   rate_limitingget_rate_limit)r$   	remaininglimits      r1   rC   Github.rate_limiting   s=      ++99	19!---r4   c                     U R                   R                  S:X  a  U R                  5         U R                   R                  $ )zF
Unix timestamp indicating when rate limiting will reset.

:type: int
r   )r#   rate_limiting_resettimerD   r8   s    r1   rI   Github.rate_limiting_resettime   s6     33q8!777r4   c                     U R                   R                  SS5      u  p[        R                  " U R                   XS   S5      $ )z
Rate limit status for different resources (core/search/graphql).

:calls: `GET /rate_limit <https://docs.github.com/en/rest/reference/rate-limit>`_
:rtype: :class:`github.RateLimit.RateLimit`
GETz/rate_limit	resourcesT)r#   requestJsonAndCheckr   r$   headersdatas      r1   rD   Github.get_rate_limit   s?     ((<<UMR""4#3#3W;>OQUVVr4   c                 .    U R                   R                  $ )z
:type: list of string
)r#   oauth_scopesr8   s    r1   rT   Github.oauth_scopes   s    
 ,,,r4   c                     [        U[        5      (       d   U5       eU R                  R                  SSU 35      u  p#[        R
                  R                  U R                  X#SS9$ )z
:calls: `GET /license/{license} <https://docs.github.com/en/rest/reference/licenses#get-a-license>`_
:param key: string
:rtype: :class:`github.License.License`
rL   z
/licenses/T	completed)r   r   r#   rN   githubLicense)r$   keyrP   rQ   s       r1   get_licenseGithub.get_license   sb     #s##(S(#((<<UjQTPUDVW~~%%d&6&6QU%VVr4   c                     [        5       n[        R                  R                  [        R                  R                  U R                  SU5      $ )z
:calls: `GET /licenses <https://docs.github.com/en/rest/reference/licenses#get-all-commonly-used-licenses>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.License.License`
z	/licenses)dictrY   PaginatedListrZ   r#   )r$   url_parameterss     r1   get_licensesGithub.get_licenses   s=     ##11NN""D$4$4k>
 	
r4   c                     [         R                  R                  [         R                  R                  U R                  SS5      $ )z
:calls: `GET /events <https://docs.github.com/en/rest/reference/activity#list-public-events>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event`
z/eventsN)rY   r`   Eventr#   r8   s    r1   
get_eventsGithub.get_events  s6     ##11LL 0 0)T
 	
r4   c                    U[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L a#  [
        R
                  " U R                  0 SS0SS9$ U R                  R                  SSU 35      u  p#[         R                  R                  U R                  X#SS9$ )a
  
:calls: `GET /users/{user} <https://docs.github.com/en/rest/reference/users>`_ or `GET /user <https://docs.github.com/en/rest/reference/users>`_
:param login: string
:rtype: :class:`github.NamedUser.NamedUser` or :class:`github.AuthenticatedUser.AuthenticatedUser`
urlz/userFrW   rL   z/users/T)	rY   GithubObjectNotSetr   r   r   r#   rN   	NamedUserr$   loginrP   rQ   s       r1   get_userGithub.get_user  s     ++222j6L6LSeSLF''...$66  "ug&6%  !,,@@(MG ##--  '4 .  r4   c                     [        U[        5      (       d   U5       eU R                  R                  SSU 35      u  p#[        R
                  R                  U R                  X#SS9$ )z
:calls: `GET /user/{id} <https://docs.github.com/en/rest/reference/users>`_
:param user_id: int
:rtype: :class:`github.NamedUser.NamedUser`
rL   z/user/TrW   )r   r   r#   rN   rY   rl   )r$   user_idrP   rQ   s       r1   get_user_by_idGithub.get_user_by_id(  sh     '3''00'((<<UfWIDVW))gt * 
 	
r4   c                 R   U[         R                  R                  L d  [        U[        5      (       d   U5       e[        5       nU[         R                  R                  La  XS'   [         R                  R                  [         R                  R                  U R                  SU5      $ )z
:calls: `GET /users <https://docs.github.com/en/rest/reference/users>`_
:param since: integer
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
sincez/users)	rY   rj   rk   r   r   r_   r`   rl   r#   r$   rv   ra   s      r1   	get_usersGithub.get_users4  s     ++222j6L6LSeSL++222&+7###11&&(8(8(N
 	
r4   c                     [        U[        5      (       d   U5       eU R                  R                  SSU 35      u  p#[        R
                  R                  U R                  X#SS9$ )z
:calls: `GET /orgs/{org} <https://docs.github.com/en/rest/reference/orgs>`_
:param login: string
:rtype: :class:`github.Organization.Organization`
rL   z/orgs/TrW   )r   r   r#   rN   rY   Organizationrm   s       r1   get_organizationGithub.get_organizationB  sh     %%%,u,%((<<UfUGDTU""//gt 0 
 	
r4   c                 R   U[         R                  R                  L d  [        U[        5      (       d   U5       e[        5       nU[         R                  R                  La  XS'   [         R                  R                  [         R                  R                  U R                  SU5      $ )z
:calls: `GET /organizations <https://docs.github.com/en/rest/reference/orgs#list-organizations>`_
:param since: integer
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Organization.Organization`
rv   z/organizations)	rY   rj   rk   r   r   r_   r`   r{   r#   rw   s      r1   get_organizationsGithub.get_organizationsN  s     ++222j6L6LSeSL++222&+7###11,,	
 	
r4   Fc                 T   [        U[        [        45      (       d   U5       e[        U[        5      (       a  SOSnU U 3nU(       a#  [        R                  " U R                  0 SU0SS9$ U R                  R                  SU5      u  pV[        R                  " U R                  XVSS9$ )z
:calls: `GET /repos/{owner}/{repo} <https://docs.github.com/en/rest/reference/repos>`_ or `GET /repositories/{id} <https://docs.github.com/en/rest/reference/repos>`_
:rtype: :class:`github.Repository.Repository`
z/repositories/z/repos/ri   FrW   rL   T)r   r   r   r   r#   rN   )r$   full_name_or_idlazyurl_baseri   rP   rQ   s          r1   get_repoGithub.get_repo_  s    
 /C:66GG6'1/3'G'G#Y
?+,((  "ucle  ((<<UCH$$T%5%5wPTUUr4   c                    U[         R                  R                  L d  [        U[        5      (       d   U5       e[        5       nU[         R                  R                  La  XS'   U[         R                  R                  La  US;   d   U5       eX#S'   [         R                  R                  [         R                  R                  U R                  SU5      $ )a  
:calls: `GET /repositories <https://docs.github.com/en/rest/reference/repos#list-public-repositories>`_
:param since: integer
:param visibility: string ('all','public')
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
rv   )publicall
visibilityz/repositories)	rY   rj   rk   r   r   r_   r`   r   r#   )r$   rv   r   ra   s       r1   	get_reposGithub.get_reposn  s     ++222j6L6LSeSL++222&+7#V00777!22>J>2+5<(##11((	
 	
r4   c                     U R                   R                  SSU-  S[        R                  0S9u  p#[        R
                  R                  U R                   X#SS9$ )z
:calls: `GET /projects/{project_id} <https://docs.github.com/en/rest/reference/projects#get-a-project>`_
:rtype: :class:`github.Project.Project`
:param id: integer
rL   z/projects/%dAcceptrP   TrW   )r#   rN   r   mediaTypeProjectsPreviewrY   Projectr$   idrP   rQ   s       r1   get_projectGithub.get_project  s_     ((<<b!v>>? = 

 ~~%%d&6&6QU%VVr4   c                     U R                   R                  SSU-  S[        R                  0S9u  p#[        R
                  R                  U R                   X#SS9$ )z
:calls: `GET /projects/columns/{column_id} <https://docs.github.com/en/rest/reference/projects#get-a-project-column>`_
:rtype: :class:`github.ProjectColumn.ProjectColumn`
:param id: integer
rL   z/projects/columns/%dr   r   TrW   )r#   rN   r   r   rY   ProjectColumnr   s       r1   get_project_columnGithub.get_project_column  sg     ((<<"R'v>>? = 

 ##11gt 2 
 	
r4   c                     [        U[        5      (       d   U5       eU R                  R                  SSU 35      u  p#[        R
                  R                  U R                  X#SS9$ )z
:calls: `GET /gists/{id} <https://docs.github.com/en/rest/reference/gists>`_
:param id: string
:rtype: :class:`github.Gist.Gist`
rL   z/gists/TrW   )r   r   r#   rN   rY   Gistr   s       r1   get_gistGithub.get_gist  s^     "c""&B&"((<<UgbTNS{{ 0 0'4PPr4   c                    U[         R                  R                  L d&  [        U[        R                  5      (       d   U5       e[        5       nU[         R                  R                  La  UR                  S5      US'   [         R                  R                  [         R                  R                  U R                  SU5      $ )z
:calls: `GET /gists/public <https://docs.github.com/en/rest/reference/gists>`_
:param since: datetime.datetime format YYYY-MM-DDTHH:MM:SSZ
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Gist.Gist`
z%Y-%m-%dT%H:%M:%SZrv   z/gists/public)
rY   rj   rk   r   datetimer_   strftimer`   r   r#   rw   s      r1   	get_gistsGithub.get_gists  s     ++222j8$$7
 7
 		 
 ++222&+nn5I&JN7###11KKd..
 	
r4   c                 j   [        U[        5      (       d   U5       e[        5       nU[        R                  R
                  La  US;   d   U5       eX%S'   U[        R                  R
                  La  US;   d   U5       eX5S'   / nU(       a  UR                  U5        UR                  5        H  u  pxUR                  U SU 35        M     SR                  U5      US'   US   (       d   S5       e[        R                  R                  [        R                  R                  U R                  S	U5      $ )
aR  
:calls: `GET /search/repositories <https://docs.github.com/en/rest/reference/search>`_
:param query: string
:param sort: string ('stars', 'forks', 'updated')
:param order: string ('asc', 'desc')
:param qualifiers: keyword dict query qualifiers
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
)starsforksupdatedsortascdescorder: qneed at least one qualifierz/search/repositories)r   r   r_   rY   rj   rk   appenditemsjoinr`   r   r#   	r$   queryr   r   
qualifiersra   query_chunks	qualifierr=   s	            r1   search_repositoriesGithub.search_repositories  s'    %%%,u,%++22288>$>8%)6",,333O+2U2+&+7#& * 0 0 2I9+Qug 67 !3 "hh|4sc"A$AA"##11(("	
 	
r4   c                 j   [        U[        5      (       d   U5       e[        5       nU[        R                  R
                  La  US;   d   U5       eX%S'   U[        R                  R
                  La  US;   d   U5       eX5S'   / nU(       a  UR                  U5        UR                  5        H  u  pxUR                  U SU 35        M     SR                  U5      US'   US   (       d   S5       e[        R                  R                  [        R                  R                  U R                  S	U5      $ )
aS  
:calls: `GET /search/users <https://docs.github.com/en/rest/reference/search>`_
:param query: string
:param sort: string ('followers', 'repositories', 'joined')
:param order: string ('asc', 'desc')
:param qualifiers: keyword dict query qualifiers
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
)	followersrepositoriesjoinedr   r   r   r   r   r   r   z/search/users)r   r   r_   rY   rj   rk   r   r   r   r`   rl   r#   r   s	            r1   search_usersGithub.search_users  s'    %%%,u,%v**111BBHDHB%)6"++222O+2U2+&+7#& * 0 0 2I9+Qug 67 !3 "hh|4sc"A$AA"##11&&	
 	
r4   c                 j   [        U[        5      (       d   U5       e[        5       nU[        R                  R
                  La  US;   d   U5       eX%S'   U[        R                  R
                  La  US;   d   U5       eX5S'   / nU(       a  UR                  U5        UR                  5        H  u  pxUR                  U SU 35        M     SR                  U5      US'   US   (       d   S5       e[        R                  R                  [        R                  R                  U R                  S	U5      $ )
aG  
:calls: `GET /search/issues <https://docs.github.com/en/rest/reference/search>`_
:param query: string
:param sort: string ('comments', 'created', 'updated')
:param order: string ('asc', 'desc')
:param qualifiers: keyword dict query qualifiers
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Issue.Issue`
)commentscreatedr   r   r   r   r   r   r   r   z/search/issues)r   r   r_   rY   rj   rk   r   r   r   r`   Issuer#   r   s	            r1   search_issuesGithub.search_issues  s#    %%%,u,%v**111==CtC=%)6"++222O+2U2+&+7#& * 0 0 2I9+Qug 67 !3 "hh|4sc"A$AA"##11LL 0 02BN
 	
r4   c                    [        U[        5      (       d   U5       e[        5       nU[        R                  R
                  La  US;   d   U5       eX&S'   U[        R                  R
                  La  US;   d   U5       eX6S'   / nU(       a  UR                  U5        UR                  5        H  u  pUR                  U SU	 35        M     SR                  U5      US'   US   (       d   S5       eU(       a  S	[        R                  0OS
n
[        R                  R                  [        R                  R                  U R                  SUU
S9$ )ab  
:calls: `GET /search/code <https://docs.github.com/en/rest/reference/search>`_
:param query: string
:param sort: string ('indexed')
:param order: string ('asc', 'desc')
:param highlight: boolean (True, False)
:param qualifiers: keyword dict query qualifiers
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.ContentFile.ContentFile`
)indexedr   r   r   r   r   r   r   r   Nz/search/coder   )r   r   r_   rY   rj   rk   r   r   r   r   highLightSearchPreviewr`   ContentFiler#   )r$   r   r   r   	highlightr   ra   r   r   r=   rP   s              r1   search_codeGithub.search_code7  sB   " %%%,u,%++222<'--'%)6",,333O+2U2+&+7#& * 0 0 2I9+Qug 67 !3 "hh|4sc"A$AA"?H8V::;d##11** 2 
 	
r4   c                    [        U[        5      (       d   U5       e[        5       nU[        R                  R
                  La  US;   d   U5       eX%S'   U[        R                  R
                  La  US;   d   U5       eX5S'   / nU(       a  UR                  U5        UR                  5        H  u  pxUR                  U SU 35        M     SR                  U5      US'   US   (       d   S5       e[        R                  R                  [        R                  R                  U R                  S	US
[        R                  0S9$ )aI  
:calls: `GET /search/commits <https://docs.github.com/en/rest/reference/search>`_
:param query: string
:param sort: string ('author-date', 'committer-date')
:param order: string ('asc', 'desc')
:param qualifiers: keyword dict query qualifiers
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Commit.Commit`
)zauthor-datezcommitter-dater   r   r   r   r   r   r   z/search/commitsr   r   )r   r   r_   rY   rj   rk   r   r   r   r`   Commitr#   r   mediaTypeCommitSearchPreviewr   s	            r1   search_commitsGithub.search_commitsi  s8    %%%,u,%v**111<<BdB<%)6"++222O+2U2+&+7#& * 0 0 2I9+Qug 67 !3 "hh|4sc"A$AA"##11MM  vBBC 2 
 	
r4   c                    [        U[        5      (       d   U5       e[        5       n/ nU(       a  UR                  U5        UR	                  5        H  u  pVUR                  U SU 35        M     SR                  U5      US'   US   (       d   S5       e[        R                  R                  [        R                  R                  U R                  SUS[        R                  0S9$ )z
:calls: `GET /search/topics <https://docs.github.com/en/rest/reference/search>`_
:param query: string
:param qualifiers: keyword dict query qualifiers
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Topic.Topic`
r   r   r   r   z/search/topicsr   r   )r   r   r_   r   r   r   rY   r`   Topicr#   r   mediaTypeTopicsPreview)r$   r   r   ra   r   r   r=   s          r1   search_topicsGithub.search_topics  s     %%%,u,%& * 0 0 2I9+Qug 67 !3 "hh|4sc"A$AA"##11LLv<<= 2 
 	
r4   c                 ~   [        U[        5      (       d   U5       eU[        R                  R                  L d0  [        U[        R
                  R
                  5      (       d   U5       eSU0nU[        R                  R                  La  SUS'   UR                  US'   U R                  R                  SSUS9u  pEnU$ )z
:calls: `POST /markdown <https://docs.github.com/en/rest/reference/markdown>`_
:param text: string
:param context: :class:`github.Repository.Repository`
:rtype: string
textgfmmodecontextPOSTz	/markdown)input)	r   r   rY   rj   rk   r   	_identityr#   requestJson)r$   r   r   post_parametersstatusrP   rQ   s          r1   render_markdownGithub.render_markdown  s     $$$*d*$&--444
V&&119
 9
 		 
 "4.&--444&+OF#)0):):OI& $ 0 0 < <K != !
 r4   c                     [        U[        5      (       d   U5       eU R                  R                  SSU 35      u  p#[        R                  " U R                  X#SS9$ )z
:calls: `GET /hooks/{name} <https://docs.github.com/en/rest/reference/repos#webhooks>`_
:param name: string
:rtype: :class:`github.HookDescription.HookDescription`
rL   /hooks/TrW   )r   r   r#   rN   r   r$   namerP   
attributess       r1   get_hookGithub.get_hook  sc     $$$*d*$"..BBWTF#
 ..gT
 	
r4   c           
          U R                   R                  SS5      u  pU Vs/ s H#  n[        R                  " U R                   XSS9PM%     sn$ s  snf )z
:calls: `GET /hooks <https://docs.github.com/en/rest/reference/repos#webhooks>`_
:rtype: list of :class:`github.HookDescription.HookDescription`
rL   z/hooksTrW   )r#   rN   r   )r$   rP   rQ   r   s       r1   	get_hooksGithub.get_hooks  sa    
 ((<<UHM
 #	
 #
 ++  ' #	
 	
 
s   *Ahook_iddelivery_idreturnc                     [        U[        5      (       d   U5       e[        U[        5      (       d   U5       eU R                  R                  SSU SU 35      u  p4[        R                  " U R                  X4SS9$ )z
:calls: `GET /hooks/{hook_id}/deliveries/{delivery_id} <https://docs.github.com/en/rest/reference/repos#webhooks>`_
:param hook_id: integer
:param delivery_id: integer
:rtype: :class:`github.HookDelivery.HookDelivery`
rL   r   z/deliveries/TrW   )r   r   r#   rN   r
   )r$   r   r   rP   r   s        r1   get_hook_deliveryGithub.get_hook_delivery  s     '3''00'+s++8[8+"..BBWWI\+?
 ((gT
 	
r4   c           
          [        U[        5      (       d   U5       eU R                  R                  SSU S35      u  p#U Vs/ s H#  n[        R
                  " U R                  X$SS9PM%     sn$ s  snf )z
:calls: `GET /hooks/{hook_id}/deliveries <https://docs.github.com/en/rest/reference/repos#webhooks>`_
:param hook_id: integer
:rtype: list of :class:`github.HookDelivery.HookDeliverySummary`
rL   r   z/deliveriesTrW   )r   r   r#   rN   r
   r   )r$   r   rP   rQ   r   s        r1   get_hook_deliveriesGithub.get_hook_deliveries  s     '3''00'((<<WWI[1
 #	
 #
 ,,  ' #	
 	
 
s   *A0c                 B    U R                   R                  SS5      u  pU$ )zr
:calls: `GET /gitignore/templates <https://docs.github.com/en/rest/reference/gitignore>`_
:rtype: list of string
rL   z/gitignore/templatesr#   rN   rO   s      r1   get_gitignore_templatesGithub.get_gitignore_templates  s)    
 ((<<)
 r4   c                     [        U[        5      (       d   U5       eU R                  R                  SSU 35      u  p#[        R                  " U R                  X#SS9$ )z
:calls: `GET /gitignore/templates/{name} <https://docs.github.com/en/rest/reference/gitignore>`_
:rtype: :class:`github.GitignoreTemplate.GitignoreTemplate`
rL   z/gitignore/templates/TrW   )r   r   r#   rN   r	   r   s       r1   get_gitignore_templateGithub.get_gitignore_template	  sd    
 $$$*d*$"..BB*4&1
 !22gT
 	
r4   c                 B    U R                   R                  SS5      u  pU$ )zx
:calls: `GET /emojis <https://docs.github.com/en/rest/reference/emojis>`_
:rtype: dictionary of type => url for emoji`
rL   z/emojisr   )r$   rP   r   s      r1   
get_emojisGithub.get_emojis  s%    
 #..BB5)Tr4   c                 &    U" U R                   X2SS9$ )aO  
Creates an object from raw_data previously obtained by :attr:`github.GithubObject.GithubObject.raw_data`,
and optionally headers previously obtained by :attr:`github.GithubObject.GithubObject.raw_headers`.

:param klass: the class of the object to create
:param raw_data: dict
:param headers: dict
:rtype: instance of class ``klass``
TrW   )r#   )r$   klassraw_datarP   s       r1   create_from_raw_dataGithub.create_from_raw_data  s     T%%wDIIr4   c                 t    [         R                  " UR                  UR                  UR                  4X#5        g)a  
Dumps (pickles) a PyGithub object to a file-like object.
Some effort is made to not pickle sensitive information like the Github credentials used in the :class:`Github` instance.
But NO EFFORT is made to remove sensitive information from the object's attributes.

:param obj: the object to pickle
:param file: the file-like object to pickle to
:param protocol: the `pickling protocol <https://python.readthedocs.io/en/latest/library/pickle.html#data-stream-format>`_
N)pickledump	__class__r  raw_headers)r$   objfileprotocols       r1   r  Github.dump*  s%     	S]]CLL#//BDSr4   c                 H    U R                   " [        R                  " U5      6 $ )z
Loads (unpickles) a PyGithub object from a file-like object.

:param f: the file-like object to unpickle from
:return: the unpickled object
)r  r  load)r$   fs     r1   r  Github.load6  s     ((&++a.99r4   c                 Z    [         R                  R                  U R                  0 XS.SS9$ )N)	client_idclient_secretF)rP   r   rX   )rY   ApplicationOAuthr#   )r$   r  r  s      r1   get_oauth_applicationGithub.get_oauth_application?  s5    &&77%.O	 8 
 	
r4   c                    U[         R                  R                  L d  [        U[        5      (       d   U5       eU[         R                  R                  L aD  [
        R                  " S[        S9  [        U R                  R                  S9R                  5       $ [        R                  " U R                  0 SSU 30SS9$ )z
:calls: `GET /apps/{slug} <https://docs.github.com/en/rest/reference/apps>`_ or `GET /app <https://docs.github.com/en/rest/reference/apps>`_
:param slug: string
:rtype: :class:`github.GithubApp.GithubApp`
zArgument slug is mandatory, calling this method without the slug argument is deprecated, please use github.GithubIntegration(auth=github.Auth.AppAuth(...)).get_app() insteadr   )r0   ri   z/apps/FrW   )rY   rj   rk   r   r   r   r   r   GithubIntegrationr#   r0   get_appr   )r$   slugs     r1   r  Github.get_appG  s     v**111Zc5J5JPDPJ6&&--- MM\+
 %$*:*:*?*?@HHJJ &&  "utfo&>% r4   )__requester)F)r   )<__name__
__module____qualname____firstlineno____doc__r   DEFAULT_BASE_URLDEFAULT_TIMEOUTDEFAULT_USER_AGENTDEFAULT_PER_PAGEr2   propertyr7   setterr,   rC   rI   rD   rT   rY   rj   rk   r\   rb   rf   ro   rs   rx   r|   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r
   r   r   r   r   r   r   r   r  r  r  r  r  __static_attributes__ r4   r1   r   r   Q   s    ((&&,,((U
n 5 5   6 !6 ) ) __* * 	. 	. 8 8W - - %1188 	W


 $0077 &

 %1188 


 '-&9&9&@&@ 
"V  ''..6;N;N;U;U
.W
Q %1188 
&   ''!!((	+
`   ''!!((	'
X   ''!!((	$
R   ''!!((0
j   ''!!((	(
T
8 -3,?,?,F,F (


 
3 
< 
 
3 
48K3L 
"
 =? 
J
T:
 "..55 r4   r   )r   r  r   typingr   r   github.ApplicationOAuthrY   github.Eventgithub.Gistgithub.GithubObjectgithub.Licensegithub.NamedUsergithub.PaginatedListgithub.Topicr    r   r   r   r	   r
   r   r   r   r   r   r   r  r+  r4   r1   <module>r6     sd   d              	 	 	 .  K K^ ,, r4   