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:
Trim21
2023-06-16 11:57:35 -04:00
committed by GitHub
co-authored by Enrico Minack Jonathan Leitschuh
parent 6d4b6d1419
commit b6258f4be9
10 changed files with 461 additions and 680 deletions
+4 -2
View File
@@ -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
"""