Files
PyGithub/github/ApplicationOAuth.pyi
T
Steve Kowalik 429fcc7307 Add typing files for OAuth classes (#1656)
The additional classes added for OAuth predated the inclusion of typing
files, add them for the new classes.
2020-08-18 14:46:34 +10:00

25 lines
712 B
Python

from typing import Any, Dict, Optional
from github.AccessToken import AccessToken
from github.GithubObject import NonCompletableGithubObject
class ApplicationOAuth(NonCompletableGithubObject):
def __repr__(self) -> str: ...
def _initAttributes(self) -> None: ...
def _useAttributes(self, attributes: Dict[str, Any]) -> None: ...
@property
def client_id(self) -> str: ...
@property
def client_secret(self) -> str: ...
def get_login_url(
self,
redirect_uri: Optional[str],
state: Optional[str],
login: Optional[str]
) -> str: ...
def get_access_token(
self,
code: str,
state: Optional[str]
) -> AccessToken: ...