From a8c25264c0b26a86c2f3e27891ac786388d8f652 Mon Sep 17 00:00:00 2001 From: TheMisterSenpai Date: Mon, 18 Apr 2022 18:12:29 +0300 Subject: [PATCH] feat(user): add description --- melisa/models/user/user.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/melisa/models/user/user.py b/melisa/models/user/user.py index e2b2d67..8936964 100644 --- a/melisa/models/user/user.py +++ b/melisa/models/user/user.py @@ -201,6 +201,13 @@ class User(APIModelBase): @classmethod def from_dict(cls, data: Dict[str, Any]) -> User: + """Generate a user from the given data. + + Parameters + ---------- + data: :class:`dict` + The dictionary to convert into a user. + """ self: User = super().__new__(cls) self.id = int(data["id"])