Revised the documentation of the AbstractUserUtils class.
This commit is contained in:
parent
b8b87714eb
commit
cd8a480cd0
@ -35,9 +35,9 @@ class AbstractUserUtils(t.Generic[T], ABC):
|
|||||||
@property
|
@property
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def cls(self) -> t.Type[T]:
|
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
|
@property
|
||||||
@ -66,9 +66,9 @@ class AbstractUserUtils(t.Generic[T], ABC):
|
|||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def get_pk(self, user: T) -> int:
|
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.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user