From cd8a480cd0430fe74397771b38bbbcf20dbd4bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 14 Mar 2023 07:59:37 +0800 Subject: [PATCH] Revised the documentation of the AbstractUserUtils class. --- src/accounting/utils/user.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/accounting/utils/user.py b/src/accounting/utils/user.py index c50d6f6..16b6ddd 100644 --- a/src/accounting/utils/user.py +++ b/src/accounting/utils/user.py @@ -35,9 +35,9 @@ class AbstractUserUtils(t.Generic[T], ABC): @property @abstractmethod def cls(self) -> t.Type[T]: - """Returns the user class. + """Returns the class of the user data model. - :return: The user class. + :return: The class of the user data model. """ @property @@ -66,9 +66,9 @@ class AbstractUserUtils(t.Generic[T], ABC): @abstractmethod def get_pk(self, user: T) -> int: - """Returns the primary key of the user. + """Returns the primary key of the user, as an integer. - :return: The primary key of the user. + :return: The primary key of the user, as an integer. """