mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
merge GithubObject.pyi/Requester.pyi stubs back to source (#2463)
Co-authored-by: Enrico Minack <github@enrico.minack.dev> Co-authored-by: Jonathan Leitschuh <jonathan.leitschuh@gmail.com>
This commit is contained in:
co-authored by
Enrico Minack
Jonathan Leitschuh
parent
6d4b6d1419
commit
b6258f4be9
@@ -42,7 +42,7 @@ class GithubException(Exception):
|
||||
def __init__(
|
||||
self,
|
||||
status: int,
|
||||
data: Dict[str, Union[str, List[str], List[Dict[str, str]]]],
|
||||
data: Union[str, Dict[str, Union[str, List[str], List[Dict[str, str]]]]],
|
||||
headers: Optional[Dict[str, str]],
|
||||
):
|
||||
super().__init__()
|
||||
@@ -59,7 +59,9 @@ class GithubException(Exception):
|
||||
return self.__status
|
||||
|
||||
@property
|
||||
def data(self) -> Dict[str, Union[str, List[str], List[Dict[str, str]]]]:
|
||||
def data(
|
||||
self,
|
||||
) -> Union[str, Dict[str, Union[str, List[str], List[Dict[str, str]]]]]:
|
||||
"""
|
||||
The (decoded) data returned by the Github API
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user