Added the initial values for the database instance, the user class and the user primary key column, to allow the Sphinx documentation system to work properly.

This commit is contained in:
依瑪貓 2023-02-07 11:40:48 +08:00
parent 16e2a146db
commit 399afe56c8
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ time.
from flask_sqlalchemy import SQLAlchemy
db: SQLAlchemy
db: SQLAlchemy = SQLAlchemy()
"""The database instance."""

View File

@ -72,9 +72,9 @@ class AbstractUserUtils(t.Generic[T], ABC):
__user_utils: AbstractUserUtils
"""The user utilities."""
user_cls: t.Type[Model]
user_cls: t.Type[Model] = Model
"""The user class."""
user_pk_column: sa.Column
user_pk_column: sa.Column = sa.Column(sa.Integer)
"""The primary key column of the user class."""