From 353977c4b282acdd0f44c34465bae665f32493f6 Mon Sep 17 00:00:00 2001 From: sudosnok Date: Sat, 9 Apr 2022 12:33:46 +0100 Subject: [PATCH] Actually fixed the http typehints --- Github/objects.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Github/objects.py b/Github/objects.py index f0e6a23..59560e7 100644 --- a/Github/objects.py +++ b/Github/objects.py @@ -49,7 +49,7 @@ class _BaseUser(APIObject): 'login', 'id', ) - def __init__(self, response: dict, _http) -> None: + def __init__(self, response: dict, _http: http) -> None: super().__init__(response, _http) self._http = _http self.login = response.get('login') @@ -83,7 +83,7 @@ class User(_BaseUser): 'following', 'created_at', ) - def __init__(self, response: dict, _http) -> None: + def __init__(self, response: dict, _http: http) -> None: super().__init__(response, _http) tmp = self.__slots__ + _BaseUser.__slots__ keys = {key: value for key,value in self._response.items() if key in tmp} @@ -106,7 +106,7 @@ class PartialUser(_BaseUser): 'avatar_url', ) + _BaseUser.__slots__ - def __init__(self, response: dict, _http) -> None: + def __init__(self, response: dict, _http: http) -> None: super().__init__(response, _http) self.site_admin = response.get('site_admin') self.html_url = response.get('html_url') @@ -143,7 +143,7 @@ class Repository(APIObject): 'forks', 'license', ) - def __init__(self, response: dict, _http) -> None: + def __init__(self, response: dict, _http: http) -> None: super().__init__(response, _http) tmp = self.__slots__ + APIObject.__slots__ keys = {key: value for key,value in self._response.items() if key in tmp} @@ -187,7 +187,7 @@ class Issue(APIObject): 'closed_by', ) - def __init__(self, response: dict, _http) -> None: + def __init__(self, response: dict, _http: http) -> None: super().__init__(response, _http) tmp = self.__slots__ + APIObject.__slots__ keys = {key: value for key,value in self._response.items() if key in tmp} @@ -227,7 +227,7 @@ class Gist(APIObject): 'comments', 'truncated', ) - def __init__(self, response: dict, _http) -> None: + def __init__(self, response: dict, _http: http) -> None: super().__init__(response, _http) tmp = self.__slots__ + APIObject.__slots__ keys = {key: value for key,value in self._response.items() if key in tmp} @@ -261,7 +261,7 @@ class Organization(APIObject): 'avatar_url', ) - def __init__(self, response: dict, _http) -> None: + def __init__(self, response: dict, _http: http) -> None: super().__init__(response, _http) tmp = self.__slots__ + APIObject.__slots__ keys = {key: value for key,value in self._response.items() if key in tmp}