diff --git a/Github/objects.py b/Github/objects.py index 66d8e77..e254647 100644 --- a/Github/objects.py +++ b/Github/objects.py @@ -77,7 +77,7 @@ class User(_BaseUser): return f'' @classmethod - async def get_user(self, session: aiohttp.ClientSession, username: str) -> 'User': + async def get_user(cls, session: aiohttp.ClientSession, username: str) -> 'User': """Returns a User object from the username, with the mentions slots.""" response = await http.get_user(session, username) return User(response, session) \ No newline at end of file