From e1ba7aa586bbdf16ade7c5afe0084f4cd1c6566c Mon Sep 17 00:00:00 2001 From: VarMonke Date: Sun, 27 Mar 2022 14:03:30 +0530 Subject: [PATCH] Change self to cls for classmethod --- Github/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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